In Gecko and WebKit, you can abort the active HTML parser by calling window.stop() on the Window object of the browsing context that’s hosting the document.
Is there way to abort the HTML parser from JavaScript in IE without causing navigation elsewhere (window.location) and without deleting the contents of the document and immediately creating a new parser (document.open())?
That is, is there a way to use JavaScript to trigger the effect of the user pressing the Stop button?
(The use case is studying the effects of aborting the parser in IE.)
See Stop iframe from loading
Quote:
For IE, you can do the same thing with document.execCommand(‘Stop’):