A link with to a page and iFrame target page

liunx

Guest
Lets see if I can explain what I need. The majority of my site is a page with an iFrame. I have 2 pages that have so much info that I want to leave the iFrame page. Of course I need to get back to my main site, is there a way to specify in my link to pull up my main page and specify which page shows in the iFrame. example:<br />
<br />
The main page is "index.htm".<br />
It contains a iFrame called "subframe".<br />
The default page in subframe is "home.htm".<br />
I have a link to "contact.htm" that the target is "subframe".<br />
I have a link to "docretrive.asp" that launches as a new page (leaving the iFrame page).<br />
<br />
I want a link on "docretrive.asp", Contact, that will bring up "index.htm" and load "contact.htm" in the iFrame instead of the default of "home.htm"<br />
<br />
I hope I didn't ramble to much,<br />
Thanks<!--content-->Since you are using ASP, you could change your main page to index.asp and tell it which page to load to the iframe src.<br />
<br />
Something like:<br />
<br />
docretrive.asp<br />
<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.asp?action=contact">Home</a><br />
<br />
<br />
index.asp<br />
<br />
<br />
<% if request("action") = "contact" then %><br />
<IFrame name="subframe" src=http://www.htmlforums.com/archive/index.php/"contact.htm"></iframe><br />
<% else %><br />
<IFrame name="subframe" src=http://www.htmlforums.com/archive/index.php/"home.htm"></iframe><br />
<% end if %><!--content-->
 
Back
Top