?
Solved

what's the difference between onbeforeunload and onunload?

Posted on 2003-02-25
5
Medium Priority
?
1,335 Views
Last Modified: 2008-01-09
what's the difference between onbeforeunload and onunload?
0
Comment
Question by:mo-shi
[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
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
neongrau earned 80 total points
ID: 8020387
i know! 6 letters!!! *g*

but to be precise:
before is when the unload starts but if you cancel the prompt, the unload won't occur. which results your window would stay open.

;-)

~neongrau
0
 

Author Comment

by:mo-shi
ID: 8020469
thanks funny fella
0
 
LVL 2

Expert Comment

by:neongrau
ID: 8020507
Answer Grade: A Points: 2
again
perhaps there's a bug you should report to the webmaster ?!?
0
 

Author Comment

by:mo-shi
ID: 8025203
I've reported the bug--I'm really sorry.  Perhaps you should too?
0
 

Author Comment

by:mo-shi
ID: 8025397
This is the answer I got:

Nothing's wrong - the points shown are the 'cost' of the question to be viewed by other users, not the number of points awarded to the answerer.  The figure is 10% of the points available for the original question.

They will get 20pts multiplied by the grade
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
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

777 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