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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page navigation issue

Status
Not open for further replies.

SKTodd

Programmer
Mar 11, 2002
33
0
0
US
I have a problem with navigating back to my home page from other open windows. A link on the home page opens a new window for a training site (using the "_blank" option). On each footer of the training site pages is a link back to the home page. Instead of going back to the home page a NEW home page opens. I have tried using "_top" and "_parent" on the footer link to get back to the original home page but have had no success.
 
Instead of linking back to the home page, if I understand you correctly it is already open. All you need to do is include code to "close" the new page.


<FORM>
<INPUT TYPE='BUTTON' VALUE='Close Window' onClick='window.close()'>
</FORM>


When in doubt, deny all terms and defnitions.
 
Your tip works beautifully. Many thanks for the help!
 
If you use the following code to close the window you won't be presented with the annoying dialogue box.
Code:
<html>
<head>
<script>
function bye() {
self.opener = this;
self.close()
}
</script>
</head>
<body>
<a href=&quot;JavaScript: bye()&quot;>close window</a>
</body>
</html>

Glen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top