Window onbeforeunload

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Window onbeforeunload

Post by icesolid »

I want a prompt to come up when users hit the back button, refresh, backspace key, but I want to allow them to click on and load a pop up window without having that prompt coming up saying "do you want to leave?".

The function for my popup window is named enlarge().

If enlarge() is used then I do not want the pop up message asking them if they want to leave to pop up.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: Window onbeforeunload

Post by JAB Creations »

JavaScript Events particularly onunload should be what you'll want to use.

:google:
Post Reply