event (Property)

During event handling, MSIE stores a reference to an Event object in this variable.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Event object
JavaScript syntax:IEevent
IEmyWindow.event

Example code:

   // Browser portable event handler
   function myEventHandler(anEvent)
   {
      if(navigator.appName.indexOf("Microsoft") != -1)
      {
         anEvent = window.event;
         anEvent.srcElement = target;
         anEvent.button = which;
         anEvent.keyCode = which;
         anEvent.altKey = anEvent.modifiers & Event.ALT_MASK;
         anEvent.ctrlKey = anEvent.modifiers & Event.CONTROL_MASK;
         anEvent.shiftKey = anEvent.modifiers & Event.SHIFT_MASK;
         anEvent.clientX = pageX;
         anEvent.clientY = pageY;
      }
      // Portable event code goes here.
   }

See also:Element.onevent

Property attributes:

ReadOnly.

Refer to:

Window.event