W3C home > Mailing lists > Public > www-svg@w3.org > April 2006

Re: SVGT 1.2: "evt" vs "event" as the implicit event argument to event handlers

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Mon, 24 Apr 2006 12:54:42 -0500
Message-ID: <444D10E2.6080101@mit.edu>
To: Sigurd Lerstad <sigler@bredband.no>, www-svg@w3c.org

Sigurd Lerstad wrote:
> Isn't 'event' a property of the global window object

This is the case in IE/Windows.  In some other UAs, HTML event handler 
attributes are converted into functions to which the event object is passed as 
the argument named "event".

So for example, in HTML:

   <body onload="alert(event)">

vs.

   <body onload="alert(window.event)">

I suggest trying both in various UAs to get a feel for what's going on.

-Boris
Received on Monday, 24 April 2006 17:55:06 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:34 GMT