By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

how can i stop browser in IE7?

P: 2
hi all,

code is working for IE6 and other browser but its not working in IE7.

document.execCommand('Stop') - IE6 code

window.stop() - Netscape code

can anyone help to stop browser code for IE7?

Thanks in advance

Aug 27 '08 #1
Share this Question
Share on Google+
4 Replies

P: 101
what about
Expand|Select|Wrap|Line Numbers
  1. window.location.stop();
Aug 27 '08 #2

P: 2
what about
Expand|Select|Wrap|Line Numbers
  1. window.location.stop();
window.location.stop(); also not working.
can u plz give me someother solution
Aug 29 '08 #3

P: 101
Hi,I tested document.execCommand('Stop'); in IE7, it DOES work. Maybe some other errors occur before execCommand was executed.

my test code:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
  2. <html xmlns="">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>Untitled Document</title>
  6. </head>
  8. <body>
  9. <a href="#" onClick="document.execCommand('Stop'); return false">Stop</a>
  10. <p>
  11. <iframe src="" width="800" height="400"></iframe>
  12. </p>
  13. </body>
  14. </html>
Aug 30 '08 #4

Expert 100+
P: 392
This could possibly be caused by the security settings in the IE7 instance you are testing with. The execCommand() function is heavily restricted and is something it is better to avoid. You might try lowing the security restrictions to see if that allows it to work.
Sep 2 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.