document.all('Iframe1').contentWindow.document.getElementById( "deptName").width;
$(window.parent.Iframe1.document.body).find('#deptName').width();
Cross-domain call IFRAME will encounter access denial. I found an untested solution on the Internet
After checking the information, I found that by default, the browser prohibits cross-domain access of scripts unless there is a necessary access trust relationship between these domains.
It’s easier to solve if you find the problem. You can lower the security level of the browser, but this is undoubtedly detrimental to users.
So we need to add a piece of js on the page
try
{
document.domain = "xxx.net";
}
catch(e)
{
}
Manual Set the domain names of the child page and the parent page to the same one and the problem will be solved.