As a newbie in terms of javscript coding I'm really struggling to work out if the following is possible:
What I want to be able to do from within an iframe is:
check if
parent.window.document.getElementById("autoloadpop") is null
I guess that would be:
if (parent.window.document.getElementById('autoload') == null) { etc
but then I want to add:
<a href='popup.php' id='autoloadpop' onclick="return hs.htmlExpand(this, { contentId: 'popup', objectType: 'iframe', width: 620, maxHeight: 400} )"></a>
to an existing div with the id 'main-header' in the parent page.
and then make the following call:
parent.window.document.getElementById('autoloadpop').onclick();
Any help would be greatly appreciated.


Reply With Quote
Bookmarks