Forum Moderators: open
function StartApp() {
window.open('login.asp','', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=750,height=550,left=100, top=100');
document.getElementById("launcher").style.zIndex = 1;
document.getElementById("running").style.zIndex = 2;
}
This function opens the window and changes the z-index of two divs on this page. This all works fine.
In the popUp window I have this code:
function cleanUp() {
parent.document.getElementById("running").style.zIndex = 1;
parent.document.getElementById("launcher").style.zIndex = 2;
}
This function is called in
<body onunload="javascript:cleanUp();">
But it doesn't change the z-index on the parent window when I close the popUp.
I get an error message in firefox saying:
Error: document.getElementById("running") has no properties
Any one know what I am doing wrong? or is this possible?