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

Need to load a document upon exiting another one...

Status
Not open for further replies.

Tivoli0

MIS
Dec 7, 2001
41
0
0
IL
Hi all,

I have this code which loads "resume.htm". When I "x" out the window I want to load "homepage.htm" that brings me back to the main page.
I think I should be using the "onUnload" event but I don't know how to write the code and where to put it. Here is my code:

Code:
<body>
<Script language=&quot;javascript&quot;>
<!--
parent.window.location=&quot;resume.htm&quot;;

//-->
</Script>


<Script language=&quot;javascript&quot;>
<!--
parent.window.location=&quot;homepage.htm&quot;;

//-->
</Script>

</body>

I can't get the 2nd document to load; upon exiting 1st document I'm getting back to the Interdev environment - the source code itself.

Thanks for any help! -Tivoli0
 
Hi bombboy ,

Thanks much for the tip! It works perfect.

-Tivoli0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top