Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-05-2002, 03:29 AM   PM User | #1
lramesh
New to the CF scene

 
Join Date: Jun 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
lramesh is an unknown quantity at this point
How to avoid sudden closing of Web Page?

Hi all,
Good Luck to everyone and How to Alert the User when they suddenly closing their web page..Actually i tried by using the Body OnUnLoad event , it seems to be working..

But in my requirement the same page will be loaded dynamically multiple times.So if i am using the OnUnLoad Event every time my Script is firing.How to Avoid that.Or Is there any other event is available so that we can trap the Browsers Close Menu(i.e the one which is displaying in the Left Top of the Browser).

Looking for the valuable suggestion from all.

thanks and regards
Ramesh
lramesh is offline   Reply With Quote
Old 07-05-2002, 08:40 PM   PM User | #2
dagaffer
New Coder

 
Join Date: Jun 2002
Location: Bonny Scotland! Status: Insane
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
dagaffer is an unknown quantity at this point
Cool

Hey,
the only suggestion I have is include a link to exit that page that has a script which will set a variable & the unload function checks for this & if it has not been changed you can reload the page (I know I'm not good at describing things but if you need an example just ask).

Just keep one thing in mind... I'm only 14 so I dont know that much about this...

Good Luck!
__________________
«Ðå G壣ꮻ²ºº²
dagaffer is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:01 AM.


Advertisement
Log in to turn off these ads.