Hi Emmanuel
This exert from
http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.3/
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
> hi,
> do-browser "self.close()" only ?
> I tried it, doesn't work !!!
> i tried with a javascript function in "<head> function
> close()...</head>"
> with do-browser "close()"
> doesn't work too !
> see on http://lauretprod.web.ool.fr/close.htm
> 2005/6/16, Izkata <[EMAIL PROTECTED]>:
>>
>>
>> Well, if Javascript is going to be used, it's pretty simple:
>> self.close()
>>
>> -Izzy Boy
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.