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)">


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

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

Received on Monday, 24 April 2006 17:55:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:12 UTC