
Form
84
|
JavaScript Pocket Reference
pageX, pageY
The X and Y coordinates, relative to the web browser page, at
which the event occurred. Note that these coordinates are
relative to the top-level page, not to any enclosing layers.
screenX, screenY
The X and Y coordinates, relative to the screen, at which the
event occurred.
target
The Window, Document, Layer, or Element object on which
the event occurred.
type
A string property that specifies the type of the event. Its value
is the name of the event handler, minus the “on” prefix. So,
when the
onclick() event handler is invoked, the type prop-
erty of the Event object is “click”.
which
For keyboard and mouse events, which specifies which key or
mouse button was pressed or released. For keyboard events,
this property contains the character encoding of the key that
was pressed. For mouse events, it contains 1, 2, or 3, indi-
cating the left, middle, or right buttons.
width
Set only in resize events. Specifies the new width of the
window or frame that was resized.
x, y
The X and Y coordinates at which the event occurred. These
properties are synonyms for
layerX and layerY and specify the
position relative to the containing layer (if any).
Form
an HTML input form
Client-side JavaScript 1.0
Inherits From: Element
Synopsis
document.forms[form_number]
document.forms[form_name]
document.form_name