首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

window.opener.document 为空或不是对象解决方案

2012-06-08 
window.opener.document 为空或不是对象var a window.opener.document.getElementById(MainContent_btn

window.opener.document 为空或不是对象
var a = window.opener.document.getElementById("MainContent_btnImportWebSite").style.display='none' ; 
为什么没效果

var a = window.opener.document.getElementById("MainContent_txtSKU").value='xxx';
一样也是报错 
信息为:window.opener.document 为空或不是对象


[解决办法]
var a = document.getElementById("MainContent_btnImportWebSite").style.display='none'
你是想干什么啊。。前面为什么要加 window.opener.
[解决办法]
window.opener.document.getElementById("MainContent_txtSKU").value='xxx';
window.opener.document.getElementById("MainContent_btnImportWebSite").style.display='none' ; 
直接这么写有错?
[解决办法]
iframe 是 window.parent.document

热点排行