Menu
I’ve got an index page and several subpages which all have to be loaded in popups. Now I’m looking for a script which checks if a page is loaded in a popup or not (like a check script for frame content). If a subpage is opened directly in the parent window (for example a search engine result), I’d like to open it in a popup and switch the parent window to the index page.
A script like this doesn’t seem to work:
[CODE]
function checkWindow()
{
if(window.opener == null)
document.location.href=”index.php”;
window.open(‘page.htm’,’windowName’,’500,400′);
}
Does anybody have any idea?