Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Working in IE but not work in firefox

Posted on 2006-06-21
4
Medium Priority
?
325 Views
Last Modified: 2012-05-05
Hi Expert!
I have code lines:
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" onunload = "if (screenTop > 9999) DeleteUserOnline();" >
it's working in IE but not work in firefox, why? Help me
My requirement when user click the "X" to close browser(IE, Firefox) onunload event appear to call javascript funtion . Please help me.
0
Comment
Question by:duynnh
  • 2
4 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 16956692
The upper if condition is already a dirty trick working in IE only because of programmatic misbehavior. You cannot expect a bug from IE to work also in FF.
There is no way to detect window closing in browser.
0
 
LVL 30

Expert Comment

by:third
ID: 16956743
i agree with Zvonko. you can only do this with IE.
0
 
LVL 30

Accepted Solution

by:
third earned 500 total points
ID: 16956791
0
 

Author Comment

by:duynnh
ID: 16956965
But with code lines i run in IE as well.(I'm using Ajax .NET Pro).
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

927 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