caclark
05-23-2003, 03:12 PM
In the below code I am trying to add a short delay in the middle of the script execution, but I can't get the "setTimeout()" to work.
The line seems to always be ignored.
Any help/new ideas would be appreciated!
-----------------------------------------------------------------------------------
----------------------- Example Of Code Used ------------------------------
<head>
<title>Edit</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- // Hide from Old Browsers
function exit_win(){
exit_win=window.open('-link to page added here-','lockwin','width=50','height=50');
setTimeout("exit_win.window.close()",5000);
// exit_win.window.close();
}
// -->
</script>
</head>
The line seems to always be ignored.
Any help/new ideas would be appreciated!
-----------------------------------------------------------------------------------
----------------------- Example Of Code Used ------------------------------
<head>
<title>Edit</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- // Hide from Old Browsers
function exit_win(){
exit_win=window.open('-link to page added here-','lockwin','width=50','height=50');
setTimeout("exit_win.window.close()",5000);
// exit_win.window.close();
}
// -->
</script>
</head>