SCRIPT70 -Permission denied Accessing iFrame in IE
文章目录

Permission denied Accessing iFrame in IE

相关链接:
SCRIPT70: Permission denied Accessing iFrame in IE

主要是由于iframe引起,在主页面中引用了iframe而iframe中希望使用js来获取主页面的内容因此报错

解决办法是充值document的内容

1
2
3
4
5
6
7
try{
document === document; //may cause permission denied
}
catch(err){
document = window.document; //resets document, and no more permission denied errors.
}
s = document.getElementById(s);