Re: Why 'event' is not defined in Mozilla
- From: Michael Winter <m.winter@xxxxxxxxxxxxxxxx>
- Date: Fri, 25 Nov 2005 23:18:15 GMT
On 25/11/2005 22:30, Thomas 'PointedEars' Lahn wrote:
[snip]
onkeypress="return isNumberInput(this, event);"
[snip]
The `event' _there_ does _not_ refer to a global event object in IE
Is that supposed to be a statement of fact,
(well, maybe it does indirectly, but to think about that is futile).
or a statement that, for all intents and purposes, may as well be considered fact? I can accept the latter for the sake of simplicity, but not the former unless you can prove otherwise.
[MLW:]
window.event == event
will evaluate to false,
Indeed, as it should.
Even if event is a property of an object in the scope chain other than the global object, I would find it hard to believe that its value is a reference to a separate object.
I maintain (unless someone proves to the contrary) that they are not only references to the same object, but the same property and the result of the comparison above is a symptom of the behaviour exhibited when window.event is compared to itself.
[snip]
Mike
-- Michael Winter Prefix subject with [News] before replying by e-mail. .
- Follow-Ups:
- Re: Why 'event' is not defined in Mozilla
- From: Richard Cornford
- Re: Why 'event' is not defined in Mozilla
- References:
- Why 'event' is not defined in Mozilla
- From: prabhdeep
- Re: Why 'event' is not defined in Mozilla
- From: Michael Winter
- Re: Why 'event' is not defined in Mozilla
- From: Thomas 'PointedEars' Lahn
- Re: Why 'event' is not defined in Mozilla
- From: Thomas 'PointedEars' Lahn
- Why 'event' is not defined in Mozilla
- Prev by Date: Re: Problem with count-up script
- Next by Date: Re: Australian Date
- Previous by thread: Re: Why 'event' is not defined in Mozilla
- Next by thread: Re: Why 'event' is not defined in Mozilla
- Index(es):
Relevant Pages
|