Solved

Simulate onbeforeunload behavior on Netscape...

Posted on 2003-10-27
5
441 Views
Last Modified: 2008-02-01
Hi, I am trying to find a way to simulate the behavior of onbeforeunload function in Netscape.  I understand that Netscape does not support this function.  I have a form that has user information, and when the user attempts to close the window, a confirm("Do you want to save changes"); window pops up.  I can do this on IE using onbeforeunload, but on Netscape I cannot.  Does anyone know a workaround?  

Thank you, any comments are well appreciated.

Thanks,
noijet.
Is there a way I can place an onclick event around the whole area of the close window button ?  because the button always appears on top right most corner?
0
Comment
Question by:noijet
5 Comments
 
LVL 15

Expert Comment

by:VincentPuglia
ID: 9629368
1) the best you can do is:
<body onUnload='something'>

2) nope; that button is untouchable

Vinny

0
 

Author Comment

by:noijet
ID: 9630629
Thanks for your comment Vinny.  My code already has like your 1)  but the problem is that Netscape 7.02 seems to not understand javascript code (even alert("");) after a user presses the close button.  But I check this code on Netscape 7.1 and it works fine.

noijet.
0
 
LVL 15

Expert Comment

by:VincentPuglia
ID: 9630674
noijet:
  even in IE, the onUnload & onbeforeUnload will occasionally miss the closing door :)

Vinny
0
 
LVL 27

Expert Comment

by:Asta Cu
ID: 10397431
noijet,
No comment has been added lately (114 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Accept noijet's answer http:#0 and Refund

Please leave any comments here within 4 days.

-- Please DO NOT accept this comment as an answer ! --


Thanks,
astaec
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 10426407
PAQed, with points refunded (80)

SpazMODic
EE Moderator
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
website issue in Firefox 8 76
IE Edge 35 79
Chrome SSRS print Functionality 1 61
MyWay Virus 10 37
Problem I downloaded the Microsoft Internet Explorer 9 Beta, today, to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash restart loop. The error message given is as illustrated below i…
I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question