|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
when I execute the "window.close()" statement
i get a confirm box as under- "the web page you are viewing is trying to close this window. do you want to close this window?" i know this is the browser's default behav. but is there any way i can stop this message from displayin ![]() |
|
#2
|
||||
|
||||
|
To my knowledge, this occurs only if you try to close the main window. It's a browser-specific warning message and can't be circumvented as far as I know. It's sort of rude to close down somebody's main window.
|
|
#3
|
|||
|
|||
|
I had thought so houston,
it is a browser-specific warning when any javascript tries to terminate an instance of IE (the main window that is). thanx anyways |
|
#4
|
|||
|
|||
|
hi, try this sample code, warning message doesn't appear.
<HTML>
<head> <SCRIPT LANGUAGE="JavaScript"> window.opener = top; </SCRIPT> <script> var popurl="test.htm"; winpops=window.open(popurl,"","fullscreen"); //winpops.opener.close(); window.close(); //window.document.URL = popurl; </script> </head> </HTML> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > message on window.close() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|