Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: SV: how can close the window.


Message #1 by "Robert Nyman" <robert.nyman@c...> on Fri, 29 Nov 2002 12:52:03 +0100
You can close small windows that have been opened by the main window.
Then you just use this code: window.close(); in the small window. Like
this, for example:
<input type=3D"button" value=3D"Close this window" 
onClick=3D"window.close()">

But you're not allowed to close the main window without getting the
message (for security reasons).


/Robert



-----Ursprungligt meddelande-----
Fr=E5n: yohomonkey [mailto:yohohuangtao0425@s...]
Skickat: den 29 november 2002 02:30
Till: javascript
=C4mne: [javascript] how can close the window.


how can close the window,and not alert the ie confirm!
thanks all!



  Return to Index