Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/372.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Internet Explorer中的JavaScript中止解析器_Javascript_Internet Explorer - Fatal编程技术网

从Internet Explorer中的JavaScript中止解析器

从Internet Explorer中的JavaScript中止解析器,javascript,internet-explorer,Javascript,Internet Explorer,在Gecko和WebKit中,您可以通过在承载文档的浏览上下文的窗口对象上调用window.stop()来中止活动的HTML解析器 有没有办法在IE中从JavaScript中中止HTML解析器,而不导致在其他地方导航(window.location),也不删除文档内容并立即创建新解析器(document.open()) 也就是说,有没有一种方法可以使用JavaScript触发用户按下停止按钮的效果 (用例正在研究IE中中止解析器的效果。)请参见 引述: 对于IE,您可以对document.exe

在Gecko和WebKit中,您可以通过在承载文档的浏览上下文的
窗口对象上调用
window.stop()
来中止活动的HTML解析器

有没有办法在IE中从JavaScript中中止HTML解析器,而不导致在其他地方导航(
window.location
),也不删除文档内容并立即创建新解析器(
document.open()

也就是说,有没有一种方法可以使用JavaScript触发用户按下停止按钮的效果

(用例正在研究IE中中止解析器的效果。)

请参见

引述:

对于IE,您可以对document.execCommand('Stop')执行相同的操作:

引述:

对于IE,您可以对document.execCommand('Stop')执行相同的操作:


谢谢有趣的是,当使用脚本创建的解析器(
document.open()
ed document)调用文档时,
execCommand
不会中止解析器。谢谢。有趣的是,当使用脚本创建的解析器(
document.open()
ed document)调用文档时,
execCommand
不会中止解析器。
window.frames[0].document.execCommand('Stop')