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

The NS4 event Object

You can see the properties of the event object used in Netscape Navigator 4.0 in Table 15.5.

Table 15.5. The Properties of the NS4 event Object
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
data   x       
  Read-only
  Holds the text data associated with a drag-and-drop operation.Using this property,you can drag and drop text data.
layerX   x       
  Read-only
  Holds the X coordinate in the layer where the event (usually a mouse event) occurred. Holds a pixel value, an integer.
layerY   x       
  Read-only
  Holds the Y coordinate in the layer where the event (usually a mouse event) occurred. Holds a pixel value, an integer.
modifiers   x       
  Read-only
  Holds the modifier keys that were pressed when the event occurred, such as the Shift, Ctrl, Meta, or Option keys. To check whether these keys were pressed, you can use an expression such as event.modifiers & Event.SHIFT_MASK, which is true if the Shift key was down, or event.modifiers & Event.ALT_MASK, which is true if the Alt key was down, and so on.
pageX   x       
  Read-only
  Holds the X coordinate in the page where the event (usually a mouse event) occurred. Holds a pixel value, an integer.
pageY   x       
  Read-only
  Holds the Y coordinate in the page where the event (usually a mouse event) occurred. Holds a pixel value, an integer.
screenX   x       
  Read-only
  Holds the X coordinate in the screen where the event (usually a mouse event) occurred. Holds a pixel value, an integer.
screenY   x       
  Read-only
  Holds the Y coordinate in the screen where the event (usually a mouse event) occurred. Holds a pixel value, an integer.
target   x       
  Read-only
  Holds the target of the event, such as a button object. Contains an object reference.
type   x       
  Read-only
  Holds the type of event, such as "click". Contains a text string.
which   x       
  Read-only
  Contains the mouse button for the mouse event or key code for the keyboard event that occurred. Contains 1 for the left/primary mouse button or 3 for the right/secondary mouse button. Contains 2 for the middle mouse button, if there is one.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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