PROPERTY:
RegExp::input
This
property is a string against which a regular expression is matched. Input
is static and is therefore always used as RegExp.input. If this
property has a value, that value is used by default as the argument of
the exec and test methods, unless another argument is provided.
When no argument is provided with these methods, the script or browser
can preset the input method as follows:
Where a TEXT form element calls an event handler,
it is set to the value of the contained text.
Where a TEXTAREA form element calls an event handler,
it is set to the value of the contained text and the multiline
property is set to true so that the match can be executed throughout
the text.
Where a SELECT form element calls an event handler,
it is set to the value of the selected text.
Use the href property to change a link.
Where a Link object calls an event handler, it is set to the
value of the text between the <A> tags.
The value of input clears after the event handler completes.
|