Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the event for which the script is written.
Syntax
<SCRIPT EVENT = sEvent ... > |
SCRIPT . event [ = sEvent ] |
Possible Values
sEvent | String that specifies or receives the event. The value for an onmouseover event, for example, is "onmouseover()". |
The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Example
This example uses the EVENT attribute and the event property to handle the onclick event.
<SCRIPT ID=oButtonScript FOR="oButton" EVENT ="onclick()">
Standards Information
This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 2 .
Applies To
|
SCRIPT |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |