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!

Jump from Frames to single window

Status
Not open for further replies.

esearing

IS-IT--Management
Aug 22, 2000
132
US
I have a site in which the user enters a menu (no frames) then jumps to another menu with frames. I placed an Icon on the Framed menu to go back to the original menu, but I can not keep it from opening a new window or populating the parent frame. Is there a target command or other which truly takes the user back to the first menu without frames in the current browser window or closes the old window?

Code
<a href=&quot;usermenu.htm target=&quot;?&quot;><img src=&quot;image.gif&quot;></a> [sig][/sig]
 
Try this...

Code:
default.html -
<html>
<body>
Menu<br>
<a href=&quot;frameset.html&quot; target=&quot;_self&quot;>Frames</a>
</body>
</html>

frameset.html -
<html>
<frameset cols=&quot;*,*&quot;>
  <frame src=&quot;c:\left.html&quot; name=&quot;leftframe&quot;>
  <frame src=&quot;c:\right.html&quot; name=&quot;rightframe&quot;>
</frameset>
</html>

left.html -
<html>
<body>
left<br>
<a href=&quot;default.html&quot; target=&quot;_top&quot;>No frames</a>
</body>
</html>

right.html -
<html>
<body>
right
</body>
</html>

Hope this helps, [sig]<p>Rob<br><a href=mailto:robschultz@yahoo.com>robschultz@yahoo.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
"Focus on the solution to the problem,<br>
not the obstacles in the way."<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[/sig]
 
frames=&quot;_top&quot; did the trick. Thanks! [sig][/sig]
 
UPDATE: this only works for the default.htm page. If you go to another page it opens on TOP in a new window. Close the first session and you can go back and forth all you want. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top