Originally Posted by s-p-n
Don't use an iFrame. Try the AJAX method because JavaScript inside an iFrame can not go throughout the page without referencing the parent.. By using AJAX, the JS will be loaded into the page, during run-time, and thus will be able to talk to the other JS on that page. An iFrame on a web page is like a whole separate site, AJAX can interlace content from a file onto the web page at run-time. Also, the file being 'included' into the window should contain strictly content within the <body> tags, if that's where it's going. (Unlike an iFrame where the source should be laid out like a full HTML page.)
You can use the 'parent' property in JavaScript to talk from the iFrame to the 'parent' web page as well..
So instead of 'document.[etc]' use 'window.parent.document.[etc]'
Or just use AJAX 
Hi - thanks for your reply. I will implement the AJAX mode and perhaps try the Content mode as well.
Saying this still, how do I use a link within the content to close the model window, instead of clicking the "Close" button-link attached to the model window itself?
Code:- Some content here...blablabla
- <p>
- <a href="#closethiswindow???">Close Window</a>
- </p>
Copy Code |