Hi everyone,
Just wondering if there is a way to self close a window in coldfusion or javascript. I can do it in javascript with a popup box but it still asks me if I am sure that I want to close the popup. I just want it to show then close itself after a certain time, any ideas?????? Here is the javascript
<html>
<head>
<script language="javascript">
function closeWin()
{
timer = setTimeout('checkForOpener()', 10000);
}
function checkForOpener(){
try{
var myVar=window.opener.document;
timer = setTimeout('checkForOpener()', 10000);
}catch(e){
window.close();
}
}
</script>
</head>
<body onLoad="closeWin()">
Testing...
</body>
</html>
Just wondering if there is a way to self close a window in coldfusion or javascript. I can do it in javascript with a popup box but it still asks me if I am sure that I want to close the popup. I just want it to show then close itself after a certain time, any ideas?????? Here is the javascript
<html>
<head>
<script language="javascript">
function closeWin()
{
timer = setTimeout('checkForOpener()', 10000);
}
function checkForOpener(){
try{
var myVar=window.opener.document;
timer = setTimeout('checkForOpener()', 10000);
}catch(e){
window.close();
}
}
</script>
</head>
<body onLoad="closeWin()">
Testing...
</body>
</html>