Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Please help with a window closing problme
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] Please help with a window closing problme
- Date: Mon, 19 Aug 2002 23:18:00 -0500
I suppose you could try the body's onUnload event handler, like this: <body onUnload="window.opener.location.href='newpage.html';"> although people have reported varying degrees of success using that. |-----Original Message----- |From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On |Behalf Of Roland Dong | |Thanks for your reply. | |Basically, I have a login page, a popup page and a menu page. When a user |logins, a small window will pop up with a announcement(popup |page). If the |user clicks the "continue" button inside the popup window, the popup window |will close and a new page--menu page--will open. | |Since the login page is a jsp. That is why it goes blank |if user click the "cross" to close the window instead of the "continue" |button. | |I am wondering how I could code that action, mouse clicking the cross to |close window, with javascript so that if a mouse clicking on the cross is |detected, the popup window should close and a new page should open. | |Thanks again for your reply. | |Roland | |On 8/17/02 10:25 PM, "Peter Brunone" <peter@xxxxxxxxxxx> wrote: | |> Roland, |> |> I don't understand. You want to close the window, and *then* redirect to |> another page? Is there another window involved, and if so, which is the |> parent and which is the child? |> |> Cheers, |> |> Peter |> |> |-----Original Message----- |> |From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On |> |Behalf Of Roland Dong |> | |> |How can I have the user redirected to another page after the user |> |closes the |> |window by clicking he cross on the upper right corner or upper |left corner |> |of a browser? |> | |> |Of course I could add javascript close() to close the window. But |> |sometimes |> |users like to click that little cross to close the window. When |> |that happens |> |I want the user be redirected to a new page. How can I do it? |> | |> |Thanks |> | |> |Roland
- References:
- [Javascript] Please help with a window closing problme
- From: Roland Dong
- [Javascript] Please help with a window closing problme
- Prev by Date: [Javascript] show-hide layers in NN 6
- Next by Date: [Javascript] show-hide layers in NN 6
- Previous by thread: [Javascript] Re: Please help with a window closing problme
- Next by thread: [Javascript] Seminar: FREE GAS - never pay for gasoline again.
- Index(es):