Re: Gecko DOM window onclose event ?
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Sun, 04 Dec 2005 17:08:07 +0100
Luke Matuszewski wrote:
> Thomas 'PointedEars' Lahn napisal(a):
>> Danny wrote:
>> > is not .onclose, is .onunload :).
>>
>> It is well known that the `unload' event also fires when the document is
>> unloaded, i.e. when the location changes. Please get informed before you
>> try to help here.
>
> Yes.
> Question in topic refers to my older post
Threads should be continued if the subject virtually is the same.
> on How to detect that a user closes a user agent window - where i
> suggested the spying popup which examines window.opener
> (window.opener.closed) properties. I ask about onclose, because i
> wanted to attach that event on Gecko browsers
1. `onclose' is not an event, it is an event handler. The respective event
would be named `close'. However, there is of course no such event in
W3C DOM Level 2 Events (or the Working Group Note on DOM Level 3 Events),
so using addEventListener() is not very likely to work in the first
place.
2. You cannot add previously unsupported event handlers to the implemented
DOM.
3. The Gecko DOM appears to support such an event handler:
<URL:http://developer.mozilla.org/en/docs/DOM:window#Event_Handlers>
Historically, event handlers can be assigned event listeners with
assignment of a Function object reference to the respective property
of the target object. However, it is not described that returning a
false-value will cancel the respective event.
> PS i tried to open window in JS (popup via window.open) and added to
> returned reference the event onclose... closed the opened window but
> onclose was not fired :(
So, ignoring that your examples were not Valid HTML, the event handler
appears not to be supported yet or not longer to be supported in the
Gecko DOM.
Would you please learn to quote?
PointedEars
.
- Follow-Ups:
- Re: Gecko DOM window onclose event ?
- From: Luke Matuszewski
- Re: Gecko DOM window onclose event ?
- References:
- Gecko DOM window onclose event ?
- From: Luke Matuszewski
- Re: Gecko DOM window onclose event ?
- From: Danny
- Re: Gecko DOM window onclose event ?
- From: Thomas 'PointedEars' Lahn
- Re: Gecko DOM window onclose event ?
- From: Luke Matuszewski
- Gecko DOM window onclose event ?
- Prev by Date: Re: JS Enabled But No RegExp Support?
- Next by Date: Re: Caching: was Re: XmlHttpRequest not loading latest version of xml
- Previous by thread: Re: Gecko DOM window onclose event ?
- Next by thread: Re: Gecko DOM window onclose event ?
- Index(es):
Relevant Pages
|