If you are running a script inside an iframe that has had its content altered via Ajax, that script may not even be properly initialized. If that isn't an issue, the Ajax loaded content will act exactly as if it were hard coded onto the page that is displaying in an iframe. The easiest way to pick up an element in the parent window is to assign it as a global variable on the parent page:
Code:
var var_name=document.getElementById('myElementId');
and then to access it from the child page as:
You can even go straight to:
Code:
parent.document.getElementById('myElementId')
Bookmarks