The iframe is accessible to script ONLY as long as iframe URL belongs to same internet domain. After iframe changed to foreign domain is no access to iframe properties allowed, except overwriting iframe location (URL), like dbritt already proposed.
Like this:
window.frames.yourPreviewI
window.frames.yourPreviewI
Main Topics
Browse All Topics





by: dbrittPosted on 2007-07-16 at 07:47:12ID: 19496126
It sounds like you load the link inside of your IFRAME that the link was in. When you try to put the page back into design mode, it tries to make the content of the IFRAME editable or set text in there and that is not allowed by the browser. Make sure you redirect the target of your IFRAME back to a local file (relative to your page) so that you won't get any permission errors before trying to run javascript on that content. This behavior is by design.