IE8挂起在document.write上,并且“不支持此命令” [英] IE8 hangs on document.write with "this command is not supported"

查看:139
本文介绍了IE8挂起在document.write上,并且“不支持此命令”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于某些网址(例如 http://www.nyest.hu/iframe/240/10 ),IE8(及更早版本)永远不会停止加载,并显示以下错误消息: SCRIPT123:不支持此命令。错误行号指向 document.write 命令。 IE9和其他浏览器加载页面没有问题。

For certain URLs (e. g. http://www.nyest.hu/iframe/240/10 ), IE8 (and older) never stops loading with the following error message: SCRIPT123: This command is not supported. The error line number points to a document.write command. IE9 and other browser load the page without problems.

推荐答案

显然这是因为该页面作为XML提供,并且 XML文档中没有 document.write 。其他浏览器也会在 document.write 命令中抛出某种错误,但是它们会更好地处理错误并完成加载页面。

Apparently this is because the page is served as XML, and there is no document.write in an XML document. Other browsers throw some sort of error at the document.write command too, but they handle the error better and do finish loading the page.

这篇关于IE8挂起在document.write上,并且“不支持此命令”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆