opener.document.getElementById在IE8中不起作用 [英] opener.document.getElementById is not working in IE8
本文介绍了opener.document.getElementById在IE8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
opener.document.getElementById("id").value;
兼容时的赋值,并且在兼容视图中的object required
赋值错误已关闭
有人可以建议我如何解决这个问题
感谢
Hi,
opener.document.getElementById("id").value;
its giving value when it is compatibility ,and its giving error like object required
when it is in compatibility view is off
can any one suggest me how can i solve this
Thanks
推荐答案
在IE8标准模式(与兼容模式相对)中,getElementById
方法区分大小写.您的ID名称正确吗?应该是"ID"还是"Id"?
In IE8 Standards Mode (as opposed to Compatibility Mode) the getElementById
method is case sensitive. Is your ID name the right case? Should it be "ID", or maybe "Id"?
必须将精确值传递给getElementById方法,因为它区分大小写.因此,请检查您传递的ID是否正确
have to pass exact value to getElementById Method as it is case sensitive. so check the id which you have passed is correct or not
这篇关于opener.document.getElementById在IE8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文