I am "lazy loading" a 3rd party ad script on my website by overwriting the document.write function and restoring it at a later time. This ad script creates an iframe, and tries to write to it.
I am seeing an "Access is denied" error in Internet Explorer 8 (but not in FF, Safari, or Chrome) when the script tries to access frame.document. The frame exists (I can see it in IE8 Developer Tools)
Any idea why this is happening? Could it be because the iframe is not ready or because of cross-site security restrictions (which I don't fully understand)?