Click to See Complete Forum and Search --> : Help with onUnload


iceafreak99
04-28-2003, 09:47 PM
Ok when someone exits my page I need to display a alert message than redirect a window thats already open to a new page.

Thanks

Andrew

pyro
04-28-2003, 10:49 PM
First of all, how is this window related to the one that is being closed (opener, opened)? If it is the opened (popup) window, you can do (from the popup) window.opener.location.href="yourpage.htm";. If it is the opener (main window), you can do winname.location.href="yourpage.htm"; where winname is the name of the popup window.

iceafreak99
04-28-2003, 10:56 PM
Its opened now how would I have a alert and opened fucntion in?

iceafreak99
04-29-2003, 04:20 PM
This is hard?

Charles
04-29-2003, 04:35 PM
Originally posted by iceafreak99
This is hard? Extremely so when you do not give us enough information to go on. Post the URL please.

iceafreak99
04-29-2003, 04:36 PM
lol sorry, I dont want to give out site because it's private I think I solved this out sorry for being rude