M
Matt
When the user click the "Close Application" button, it will close the
window. That window is not called by window.open(...) before. However,
when it calls window.close(), it pops up an dialog saying "The Web
page you are viewing is trying to close the window. Do you want to
close this window?" It that window is called by window.open(...), and
I call window.close(), this problem won't happen. Any ideas?? Thanks!!
<html>
<head>
<script type="text/javascript">
function closewindow()
{
alert("user closes the application...");
window.close();
}
</script>
</head>
<body>
<P><INPUT type=button value="Close Application" name=btnCloseApp
onclick="closewindow()">
</body>
</html>
window. That window is not called by window.open(...) before. However,
when it calls window.close(), it pops up an dialog saying "The Web
page you are viewing is trying to close the window. Do you want to
close this window?" It that window is called by window.open(...), and
I call window.close(), this problem won't happen. Any ideas?? Thanks!!
<html>
<head>
<script type="text/javascript">
function closewindow()
{
alert("user closes the application...");
window.close();
}
</script>
</head>
<body>
<P><INPUT type=button value="Close Application" name=btnCloseApp
onclick="closewindow()">
</body>
</html>