Does window.stop() work in IE?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Nov 2006
Posts: 3
Reputation: ChoosenJoe is an unknown quantity at this point 
Solved Threads: 0
ChoosenJoe ChoosenJoe is offline Offline
Newbie Poster

Does window.stop() work in IE?

 
0
  #1
Nov 16th, 2006
I am trying to use Javascript to stop a web page processing a search when the user hits a cancel button. In Netscape, window.stop() seems to work (in the same way as the Stop button on the browser I guess). However, this does not work in IE. Is there any other method that can be used to get the same result?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 154
Reputation: katarey is an unknown quantity at this point 
Solved Threads: 20
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Re: Does window.stop() work in IE?

 
0
  #2
Nov 16th, 2006
hi,

IE4+ doesn't support the
window.stop
method. Instead, the
document.execCommand
method has an (previously) undocumented argument called Stop, which
allows you to call
document.execCommand('Stop')
to get the same effect as
window.stop()
in Netscape.

It should be noted that using this repeatedly in IE 5.x (especially
within frames) can cause a browser crash.

see this http://www.faqts.com/knowledge_base/view.phtml/aid/1792
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC