Solved

Simulate onbeforeunload behavior on Netscape...

Posted on 2003-10-27
5
442 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

Question has a verified solution.

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

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
Internet is a big network which is formed by connecting multiple small networks.It is a platform for all the users which are connected to it.Internet act as platform in different fields. Such as: Internet  as a collaboration platform. Internet  as…
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.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

738 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