Ok but i want to close my windows after i opened another. is there any
chance to close it whitout that stupid wquestuion?
Pal
"Tim Van Wassenhove" <euki@pi.be> wrote in message
news:bpoc6f$1rt vrs$1@ID-188825.news.uni-berlin.de...[color=blue]
> On 2003-11-22, Pal Csepregi <palr@chello.hu > wrote:[color=green]
> > Can i close a windows without the question that do i want to close it?[/color]
>
> You can close your windows, but not mine. Certainly not without asking
> me. And let's keep it that way :)
>
> --
> verum ipsum factum[/color]
Please don't top post.
[color=blue]
> Ok but i want to close my windows after i opened another. is there any
> chance to close it whitout that stupid wquestuion?[/color]
It's not your window unless you opened it. Closing the main window of
the browser also loses its history. That is why you are not allowed
to close it, even though it is currently showing your page.
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Pal Csepregi wrote on 22 Nov 2003:
[color=blue]
> Ok but i want to close my windows after i opened another. is
> there any chance to close it whitout that stupid wquestuion?[/color]
No, you can't. If the user asks, through settings in their browser,
to be warned if a script tries to close a window you, as an author,
have no right to over-ride that decision.
I think what Mr Wassenhove* tried to say was a lot of users do not
wish to be 'violated' in that way, and nothing should be done to
change current browser behaviour.
Michael Winter wrote on 22 Nov 2003:
[color=blue]
> No, you can't. If the user asks, through settings in their
> browser, to be warned if a script tries to close a window you,
> as an author, have no right to over-ride that decision.[/color]
Correction: it has nothing to do with browser preferences (though
some might use them). It is part of the behaviour of the
window.close() method.
On Sat, 22 Nov 2003 19:03:11 GMT, "Pal Csepregi" <palr@chello.hu >
wrote:
[color=blue]
> Can i close a windows without the question that do i want to close it?[/color]
If you see the question it's NOT a window,
it's the browser itself. (maybe you came in from a search engine)
Then it's a page that was intended to be opened as a window
with window.open or _blank etc.
Michael Winter wrote:
[color=blue]
> Michael Winter wrote on 22 Nov 2003:
>
>[color=green]
>>No, you can't. If the user asks, through settings in their
>>browser, to be warned if a script tries to close a window you,
>>as an author, have no right to over-ride that decision.[/color]
>
>
> Correction: it has nothing to do with browser preferences (though
> some might use them). It is part of the behaviour of the
> window.close() method.
>
> Mike
>[/color]
Even that is starting to change too. I reported a bug on this issue for
Opera 7. Scripts might not have the rights to close windows, even those
created by javascript. It's generally perceived as rude, excessive
powers over the browser. Idem est: the user wants to position or resize
an enlarged image in a requested popup but a script detects a mouse
clicks and then closes the window: quite stupid IMO.
Mozilla will have (or already has) an user pref by which you can disable
windowRef.close () calls.
Firebird 1.0 will have it as an UI pref:
+ <checkbox id="allowCloseW indow"
label="&allowCl oseWindow.label ;"
prefstring="dom .allow_scripts_ to_close_window s"/>
Comment