Hi
I am having trouble getting this to close the window after a time delay, from within the window content.
Can't see what i am doing wrong. Can anyone help?
Thanks
Clive
I am having trouble getting this to close the window after a time delay, from within the window content.
Can't see what i am doing wrong. Can anyone help?
Thanks
Clive
<head runat="server"> |
<title>Untitled Page</title> |
<script type="text/javascript"> |
function closeWindow() |
{ |
var oWindow = GetRadWindow(); |
oWindow.close(); |
} |
function GetRadWindow() |
{ |
var oWindow = null; |
if (window.radWindow) |
oWindow = window.radWindow; |
else if (window.frameElement.radWindow) |
oWindow = window.frameElement.radWindow; |
return oWindow; |
} |
</script> |
</head> |
<body onload="setTimeout(closeWindow(), 3000);"> |
<form id="form1" runat="server"> |
<div> |
Close this window after downloading your file if it does not close automatically</div> |
</form> |