Any javascript event occurring when user clicks Stop load button? -


i want run javascript when user clicks stop load-button (red x in browsers) or hit esc on keyboard, same.

i've seen questions here covering esc button hooking onto document.body.onkeyup, couldn't find covering mouse click on stop button.

internet explorer has document.onstop event fired, other browsers don't seem support that. note it's fired when user clicks stop or hits esc, or if user navigates page during page load, has same effect.

i don't believe there reliable way trigger event on clicking stop in other browsers. perhaps possible like: keeping connection server open (as in comet approach), streaming sort of keep-alive down connection, , detecting if stream ends (as assume if stop button clicked).


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -