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!

Can open a page with a specific frame

Status
Not open for further replies.

jmcg

Technical User
Jun 30, 2000
223
GB
Can I point a URL to open a page with a specific frame?
IE: The page index.htm has 2 frames top has top.htm and bottom has bottom.htm.
I want a link that opens index.htm with the pages other.htm in the main frame.
I think I have seen something like this before
index.htm?frame_main=other.htm or something but cannot get it to work.
Any help? Thanks
 
Jared
Thanks, but...could you give me an example, I've tried:
index.htm?target.main=other.htm
index.htm?main.target=other.htm
index.htm?main=other.htm
and many many others but none will work, I'm sure I'm missing something very simple ;-(
Please help again.
Thanks
 
when using a frameset, the code below would set the frame names:

<!-- frames -->
<frameset cols=&quot;23%,*&quot;>
<frame name=&quot;left&quot; src=&quot;left.html&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot;>
<frame name=&quot;right&quot; src=&quot;right.html&quot; marginwidth=&quot;10&quot; marginheight=&quot;10&quot; scrolling=&quot;auto&quot; frameborder=&quot;0&quot;>
</frameset>

with the left frame being name &quot;left&quot; and the right frame being named &quot;right&quot;. When writing links in your html files that are used &quot;left.html&quot; and &quot;right.html&quot; you would add a target in this case going from left to right as below:

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<html>
<head>
<title>Untitled</title>
</head>

<body bgcolor=&quot;Black&quot;>


take me to Altavista <a href=&quot; target=&quot;right&quot;>click here</a>:
</body>
</html>


notice in my link the target=&quot;right&quot; which is what I named the right frame. You can use this with all of your links in your HTML files. Just remember to use the right name (whatever you called your right side in the frameset). and remember that if you want to open a new window, you could simply set the target to &quot;blank&quot;.

Hope this helped
 
What I am trying to do is send them directly to the page other.htm which will be within the frame create by index.htm. They will not already be on the page index.htm.
I am trying to avoid having numerous frameset pages IE
index.htm puts main.htm in the main frame
index2.htm puts other.htm in the main frame
etc, etc.
I want the index.htm to put what ever page I want in the frame main.

Thanks for the try ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top