Stop browser button for IE

window.stop() seems to work (as the Stop button on the browser . However, this does not work in IE. worked on it for a while and eventually figured it out.

Use the code below for cross browsers solution. It works with FF3.5.2,3.6.3 Safari 3.1 and IE 7 and 8.

if(navigator.appName == 'Microsoft Internet Explorer') { window.document.execCommand('Stop'); } else { window.stop(); }

Good Luck

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s