/    Sign up×
Community /Pin to ProfileBookmark

I was wandering if there are any subset events for onUnload?

I mean what happends during onUnload.

and if i can call a function at a paricular point of the onUnload process
Thanks

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 07.2007 — No. This is fired when a user leaves the page. There is also onbeforeunload which, of course, fires before [I]onunload[/I].
Copy linkTweet thisAlerts:
@felgallFeb 07.2007 — Of course since onbeforeunload is non-standard it doesn't fire in all browsers and the only event you can be sure will fire when the page is unloaded is onunload which has just about enough time to execute a half dozen simple statements if you are lucky before it is unloaded along with the rest of the page.
Copy linkTweet thisAlerts:
@moiseszaragozaauthorFeb 07.2007 — No. This is fired when a user leaves the page. There is also onbeforeunload which, of course, fires before [I]onunload[/I].[/QUOTE]


Thanks.

I was testing the onbeforeunload but it happends befor the unload event
Copy linkTweet thisAlerts:
@moiseszaragozaauthorFeb 07.2007 — Of course since onbeforeunload is non-standard it doesn't fire in all browsers and the only event you can be sure will fire when the page is unloaded is onunload which has just about enough time to execute a half dozen simple statements if you are lucky before it is unloaded along with the rest of the page.[/QUOTE]

Thanks I will try to to do a couple of things
×

Success!

Help @moiseszaragoza spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...