Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: close a internet explorer window with a button in an Internet explorer plugin...

From: pwawood::mango::net::my at: 17-Jun-2005 14:26

Hi Emmanuel This exert from reference/window.html#1201822 may help explain: The close method closes only windows opened by JavaScript using the open method. If you attempt to close any other window, a confirm is generated, which lets the user choose whether the window closes. This is a security feature to prevent mail bombs" containing self.close(). However, if the window has only one document (the current one) in its session history, the close is allowed without any confirm. This is a special case for one-off windows that need to open other windows and then dispose of themselves." Though when I tried the following simple test with Firefox, Safari and Internet Exploiter under Mac OS X 10.2.8 : <html> <head> <title>Shut the Browser Window</title> </head> <body> This is some useless text <script type="text/javascript"> self.close() </script> </body> Safari and even IE happily shut the only window open, but Firefox didn't!!! Regards Peter