| Parent element | child elements | inherit: |
|---|---|---|
| Input | Button | Methods, Properties and Event Handlers |
| Checkbox | ||
| FileUpload | ||
| Password | ||
| Radio | ||
| Reset | ||
| Select | ||
| Submit | ||
| Text | ||
| Textarea | ||
| HTMLElement | All Input children | Methods, Properties and Event Handlers |
| Plus: Anchor | ||
| Document | ||
| Form | ||
| Image | ||
| Input | ||
| Link | ||
| Option | ||
| Input | Hidden | Methods and Properties only |
In the following table, if all the child elements inherit all the event handlers, only the parent elements from the table above are given.
| Handler | Element | Version |
|---|---|---|
| onAbort() | Image | 1.1 |
| onBlur() | Window, Input | 1.1 |
| onChange() | Input | |
| onClick() | Button, Link. Return false to cancel default action. | 1.2 |
| HTMLElement | ||
| onError() | Image, Windows | 1.1 |
| onKeyDown() | Document, Image, Link, Password, Text, Textarea. Return false to cancel default. | 1.2 |
| onKeyPress() | Document, Image, Link, Password, Text, Textarea. Return false to cancel default. | 1.2 |
| onKeyUp() | Document, Image, Link, Password, Text, Textarea. Return false to cancel default. | 1.2 |
| onLoad() | Window | 1.1 |
| Image | ||
| onUnload() | Window | 1.1 |
| Image | ||
| onMouseDown() | Document, Link, Image, Button. Return false to cancel default action. | 1.2 |
| onMouseUp() | Document, Link, Image, Button. Return false to cancel default action. | 1.2 |
| onMouseOver() | Link: Return true to prevent URL display. | 1.2 |
| Image, Layer. Return true to prevent URL display. | ||
| onMouseOut() | Link: Return true to prevent URL display. | 1.2 |
| Image, Layer. Return true to prevent URL display. | ||
| onReset() | Forms: Return false to prevent reset | 1.1 |
| onSubmit() | Forms: Return false to prevent form submission | 1.1 |
This is part of www.codehelp.co.uk Copyright © 1998-2004 Neil Williams
See the file about.html for
copying conditions.