chump2877
02-10-2006, 01:42 AM
I have this code:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<?
echo 'HELLO WORLD!';
sleep(10);
?>
<script language="JavaScript">
<!--
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
{
window.opener.progressWindow.close()
}
window.close();
-->
</script>
</BODY>
</HTML>
I want to know why I don;t see the phrase "HELLO WORLD!" on the screen for 10 seconds before the javascript closes the window....
Right now, I see a blank screen, then the window closes....How come?
thanks..
Nevermind, this is resolved. I found the answer here: http://www.codingforums.com/showthread.php?t=77880&highlight=sleep
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<?
echo 'HELLO WORLD!';
sleep(10);
?>
<script language="JavaScript">
<!--
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
{
window.opener.progressWindow.close()
}
window.close();
-->
</script>
</BODY>
</HTML>
I want to know why I don;t see the phrase "HELLO WORLD!" on the screen for 10 seconds before the javascript closes the window....
Right now, I see a blank screen, then the window closes....How come?
thanks..
Nevermind, this is resolved. I found the answer here: http://www.codingforums.com/showthread.php?t=77880&highlight=sleep