Permission denied Accessing iFrame in IE

    各种弹窗和 Toggle 方法中报错,主要由于 iframe 引起,在主页面中引用了 iframe 而 iframe 中希望使用 js 来获取主页面的内容因此报错

    在 Ext-js 中也可能会报同样的错误,很落后的库了,还是推荐使用 Bootstrap

    解决办法是重制 document 的内容

    	try{
    	    document === document; //may cause permission denied
    	}
    	catch(err){
    	  document = window.document; //resets document, and no more permission denied errors.
    	} 
    	s = document.getElementById(s);
    

    参考文献

    SCRIPT70: Permission denied Accessing iFrame in IE