Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL for a page with a specific frame displayed

Status
Not open for further replies.

jmcg

Technical User
Jun 30, 2000
223
GB
I want to have a URL that will open a frames page with a page in the main frame that is not the default.
IE the index.htm has 2 frames (top and main) with the pages toppage.htm and mainpage.htm loaded.
I want to direct a user to index.htm which will show otherpage.htm in the main frame.
I am sure i've seen something like this before but cannot remember where. Any suggestions?
 
Are you using any kind of scripting in the index.htm?? (Not ASP I assume by the htm extension??) If you were to use index.asp, in the ASP page you could get hold of a QueryString parameter, passed from the calling page and dynamically set the url of the main frame.

Alternatively, if the top frame is to remain constant - with normal header information, you can have an <a href> element in the calling page with the target attribute set to the name of the main frame. ie

<a href=&quot;otherpage.htm&quot; target=&quot;mainframe&quot;>link</a>

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top