Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8407867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:29:10+00:00 2026-06-09T23:29:10+00:00

How do I pass a query string to a HTML frame? I have the

  • 0

How do I pass a query string to a HTML frame?

I have the following HTML in index.html:

<HTML>
<FRAMESET rows="200, 200" border=0>
  <FRAMESET>
    <FRAME name=top scrolling=no src="top.html">
    <FRAME name=main scrolling=yes src="/cgi-bin/main.py">
  </FRAMESET>
</FRAMESET>
</HTML>

The frame src is main.py which is a python cgi script. This is in main.py:

import cgi
form = cgi.FieldStorage()
test = form.getvalue('test')

Suppose I call the url using index.html?test=abcde. How do I pass the query string to main.py? Is this possible using javascript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:29:12+00:00Added an answer on June 9, 2026 at 11:29 pm

    This should help you get variables from the query string, which you can use to build your custom queryString. Or if you want to pass the query string as it is to the frame, then you could get it a simpler fashion.

    var queryString = window.location.href.split('index.html?')[1];

    Now, as for passing it to the frame, it should be easy because you’d just be appending the query string to the frame element’s src attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dynamic query string that I need to pass via an .htaccess
I'm trying to pass two variables (a search query (String) and a column name
I'm trying to pass ReturnUrl query string to my login page. I have a
this code will not pass the query string to default3.aspx on Image Button ..
I want to pass '#' to the query string like ?page.aspx?someParam=1234#5 .
I would like to pass a MYSQL query via Coldfusion the following date: 03/13/2010
This is for basic HTML/PHP pages, no query strings, etc.. I have searched high
How would I pass a datetime e.g. 01/01/2011 21:01:34 as a query string? I
I'm trying to pass a variable from the URL (not the query string) to
I have two HTML pages, example1.html and example2.html . How do I pass variables

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.