View Full Version : Does window.stop() work in IE?

11-16-2006, 03:10 PM
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?

11-16-2006, 08:29 PM
You could try IE's command:


which supposedly simulates window.stop(). In IE7, this works for example:

<a href="#" onClick="document.execCommand('Stop'); return false">Stop</a>

<iframe src="http://engadget.com"></iframe>