• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The IE4+ event Object

You can see the properties of the event object used in Internet Explorer 4+ in Table 15.6.

Table 15.6. The Properties of the IE4+ event Object
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
Abstract          x
  Read-only
  Holds the content of a banner in an Advanced Stream Redirector (ASX) file. Contains text.
altKey       x x x x
  Read-only
  True if the Alt key was pressed when the event occurred, false otherwise.
altLeft         x x
  Read-only
  True if the left Alt key was pressed when the event occurred, false otherwise.
Banner          x
  Read-only
  Gets the banner content of an entry in an ASX file.
bookmarks       x x x x
  Read-only
  Holds a collection of ActiveX Data Objects (ADO) bookmarks.
boundElements       x x x x
  Read-only
  Holds a collection of all elements in the document bound to a data set.
button       x x x x
  Read-only
  Indicates what mouse button was pressed or released. Holds 0 (the default, no button is pressed), 1 (left button is pressed), 2 (right button is pressed), 3 (left and right buttons are both pressed), 4 (middle button is pressed), 5 (left and middle buttons both are pressed), 6 (right and middle buttons are both pressed), or 7 (all three buttons are pressed).
cancelBubble       x x x x
  Read/write
  Sets or gets whether the current event should bubble up the hierarchy of event handlers. Set to false (the default, bubbling is enabled, allowing the next event handler in the hierarchy to get the event) or true (bubbling is disabled for this event, preventing the next event handler in the hierarchy from getting the event).
clientX       x x x x
  Read/write
  Holds the X coordinate of the event in client area coordinates. To get the actual position in a page if the page has been scrolled, add document.body.scrollLeft to this value.
clientY       x x x x
  Read/write
  Holds the Y coordinate of the event in client area coordinates. To get the actual position in a page if the page has been scrolled, add document.body.scrollTop to this value.
contentOverflow         x x
  Read-only
  Holds a value that indicates whether the document contains additional content beyond the current layout. Contains true if so, false if not.
ctrlKey       x x x x
  Read-only
  True if the Ctrl key was pressed when the event occurred, false otherwise.
ctrlLeft         x x
  Read-only
  True if the left Ctrl key was pressed when the event occurred, false otherwise.
dataTransfer        x x x
  Read-only
  Gives you access to predefined clipboard formats for use in drag-and-drop operations. This property holds a dataTransfer object. See Chapter 17, “Dynamic HTML: Drag and Drop, Data Binding, and Behaviors,” for more on this property and the dataTransfer object.
fromElement       x x x x
  Read-only
  Holds the object the mouse came from before entering the object that caused the event.
keyCode       x x x x
  Read/write
  Holds the key code or character code associated with a keyboard event. See “The Keyboard” in this chapter for more information and an example.
moreInfo          x
  Read-only
  Holds the MoreInfo content of a banner in an ASX file.
nextPage         x x
  Read-only
  Holds the position of the next page within a print template.
offsetX       x x x x
  Read/write
  Holds the X coordinate of the event inside the target element. Set to a pixel measurement, an integer.
offsetY       x x x x
  Read/write
  Holds the Y coordinate of the event inside the target element. Set to a pixel measurement, an integer.
propertyName        x x x
  Read-only
  Contains a string that holds the name of the property whose value will change in this event.
qualifier       x x x x
  Read-only
  Holds the name of the data member provided by a data source object.
reason       x x x x
  Read-only
  Holds the result of the data transfer for a data source object. This value is an integer holding 0 (data transmitted successfully), 1 (data transfer aborted), or 2 (data transferred in error).
recordset       x x x x
  Read-only
  Holds a reference to the current recordset.
repeat        x x x
  Read-only
  Indicates whether the onkeydown event is being repeated. Holds true if so, false otherwise.
returnValue       x x x x
  Read/write
  Sets or gets the return value from the event. Set to true (the default—continue normal processing) or false (the default action of the event on the source object is canceled). You can also return false from an event handler to cancel an event’s normal processing.
saveType         x x
  Read-only
  Holds the type of data in the clipboard for oncontentsave events. Holds "HTML" or "TEXT".
screenX       x x x x
  Read/write
  Holds the X coordinate of the event in screen coordinates. Set to a pixel measurement, an integer.
screenY       x x x x
  Read/write
  Holds the Y coordinate of the event in screen coordinates. Set to a pixel measurement, an integer.
shiftKey       x x x x
  Read-only
  True if the Shift key was pressed when the event occurred, false otherwise.
shiftLeft         x x
  Read-only
  True if the left Shift key was pressed when the event occurred, false otherwise.
srcElement       x x x x
  Read-only
  Holds the object that cause the event. Contains an object reference.
srcFilter       x x x x
  Read/write
  Sets or gets the filter object that caused the onfilterchange event to occur.
srcUrn        x x x
  Read-only
  Holds the Uniform Resource Name (URN) of the Internet Explorer behavior that caused the event. See Chapter 17 for more on behaviors.
toElement       x x x x
  Read-only
  Holds a reference to the object the mouse is over now.
type       x x x x
  Read-only
  Contains the event name from the event object. For example, holds the text "click" for a click event.
wheelDelta          x
  Read-only
  Holds the distance and direction the wheel button has rolled. This property holds an integer that indicates the distance that the wheel has rotated, expressed in multiples of 120. For an example, see “The onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, and onmousewheel Events” in Chapter 6.
x       x x x x
  Read/write
  Sets or gets the X coordinate, in pixels, of the mouse pointer’s position relative to a positioned parent element.
y       x x x x
  Read/write
  Sets or gets the Y coordinate, in pixels, of the mouse pointer’s position relative to a positioned parent element.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint