Forum Moderators: open
<body onload="if (window.opener && !window.opener.closed){window.opener.parent.location='back_cover.html';}"
The script runs in a popup window and it changes the contents in the window that launched the popup. It works great. However, here is my problem. The onload works when all the html is loaded but IÕm loading a flash movie, which onload doesnÕt recognize, this results in the new contents and my flash movie loading at the same time, which slows down the whole process.
IÕve been trying to incorporate ŌsetTimeoutÕ command to delay the loading for 20 seconds but canÕt get it to work.
Any help writing this script much appreciated.
Mak
<script>
function waitABit(){
setTimeout("popMe()", 20000);
}
function popMe(){
if (window.opener && !window.opener.closed){window.opener.parent.location='back_cover.html';}
}
</script>
<body onLoad="waitABit()">
With Flash
Have an action on your first frame that check to see if the last frame is loaded. Once it triggers you want to
Get URL ("javascript:popMe()")