FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

detect if user click [STOP] in FireFox

 


dramaking
Is it possible to detect if user click the stop button on Firefox?
I can do it in IE by using onstop()... but it doesn't work in Firefox...
anyone has any idea? thank you!!
MrBlueSky
The onstop event is IE-only. In Firefox you can't use that (as you found out). There is no (easy) way to detect if the user hits the stop button that works in all browsers.
You can take a look at the onabort event which is fired when an image stops loading: http://www.w3schools.com/htmldom/event_onabort.asp
dramaking
MrBlueSky wrote:
The onstop event is IE-only. In Firefox you can't use that (as you found out). There is no (easy) way to detect if the user hits the stop button that works in all browsers.
You can take a look at the onabort event which is fired when an image stops loading: http://www.w3schools.com/htmldom/event_onabort.asp


ic.. there is no onstop in other browser...

so how onabort could help me to detect on STOP in browser?
varun_dodla
I needed to track the stop event sometime back but never knew we could track the stop event in IE so easily.
Thanks a lot ....I'll remember this for the future.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.