Javascript with IE 11 issue

Javascript with IE 11 issue

本文关键字:issue IE with Javascript      更新时间:2024-05-08

我有一个15-18年前编写的web应用程序,我正在使用过时的iframe开发asp.net网页。下面的代码行仅适用于IE8,并且对象计数=1439,同一行被所有其他浏览器忽略并返回null。

Iframe代码:

var frame=window.document.all.tooltipFrame;

我通过访问元素解决了这个问题,并修复了我的代码。

感谢

您可以从MSDN文档中看到。不再支持document.all

[all不再受支持。从Internet Explorer 11开始,请使用getElementById。有关信息,请参阅兼容性更改。]