javascript getattribute issues IE 11
javascript getattribute issues IE 11
我在javascript中使用getattribute,它在IE 11中不起作用。getattribute有等效项吗。下面是我的代码。
代码:-
var innerFrames = currentRow.all.tags("iframe");
if(innerFrames.length > 0)
{
var currentFrame = innerFrames[0];
var frmID = currentFrame.getAttribute("id");
var ownerID = currentFrame.getAttribute("displayID");
}
var sGroupCaption = (currentFrame.getAttribute("Caption") == null) ? "" : currentFrame.getAttribute("Caption");
if (currentFrame.getAttribute("isEmpty")!= null){ }
var Type = (currentFrame.getAttribute("displayType") == null) ? "" : currentFrame.getAttribute("displayType");
请建议我可以在javscript 中复制这个getattribute
感谢
您可以直接访问属性,如下所示:
- currentFrame.myProperty
- currentFrame["myProperty"]
相关文章:
- 为什么这在IE中的工作方式与在Firefox中不同
- 后焦点更改为IE 11中的地址栏,而不是转移到表单中的下一个控件
- 如何在读取XLS/XLSX本地文件时,使用IE的javascript代码启用未标记为安全的ActiveX控件
- jQuery blueimp文件上传:将N-1个文件上传到IE中的服务器
- 有没有一种方法可以在控制台关闭的情况下让console.log()在IE中记录消息
- 设置倒计时计时器,IE出现问题
- 仅在IE中,javascript中的时区名称不正确
- 在IE中加载Firebug Lite时出现问题
- 为什么我得到错误IE修剪方法是't支持
- IE中的CSS翻转动画:翻转的一面显示镜像内容
- 通过具有IE<11
- IE在将字符串转换为日期时从日期中删除4小时
- 列表样式在IE中未设置为none,但在IE中适用
- IE/Chrome中未定义的函数,但Firefox中没有
- Jquery Modal表单登录与AJAX-ASP经典上的IE 9
- window.opener.document在ie中不起作用
- getElementById : IE Issues
- JavaScript IE issues
- javascript getattribute issues IE 11
- Jquery IE issues