window closure

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

Since I can't automatically close a window after execution, what is a viable
alternative to prevent browser windows from staying open indefinitely ??
 
Or, if you want the page to stay open for, say 10 minutes, use:

<script type="text/javascript"><!--
function CloseWindow()
{
window.opener = self; // If the window has no opener, this prevents
confirmation dialogue
window.close();
}
// the interval is in millseconds. I broke it down in the following
line:
window.setTimeOut("CloseWindow()", 10 * 60 * 1000);
// --></script>

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Nice hack.
But i am afraid it will not work after Microsoft fix it in some SP.
Because in reality it's a hack and a security bug.

George.
 
Back
Top