我有一个js问题,或者我不知道我看不到问题。window.frames [1] .document.getElementById无法读取未定义的属性'文档'
当我检查的
window.frames[1].document.getElementById('GroupPolicyIdentity.policyStartDate').value;
从控制台的价值,我看到了价值,但在js代码,我得到
Uncaught TypeError: Cannot read property 'document' of undefined.
我试图做到这一点的错误。
var policyStartDate =
window.frames[1].document.getElementById('GroupPolicyIdentity.policyStartDate').value;
你能帮帮我吗? 谢谢。
是的,我确定,这是一个旧的项目,它有2帧在页面中。 我已经看到数据了。 – devgirl
你可以检查'window.frames.length'吗? – Bharadwaj
@devgirl你能告诉我你如何检查与JS ...脚本标签内? –