Lista de eventos
 
Función
Desencadenado por
Puede ser usado con
onAbort
loading interrupted
image
onBlur
element loses input focus
text elements, window, all other elements
onChange
user selects or deselects an item or enters text and moves input focus to another element.
select, text input elements
onClick
User clicks once. Return false to cancel default action
Link, button elements
onDblClick
User clicks twice
Document, Link, Image, button elements
onError
Error occurs while loading an image
Image
onFocus
Element given input focus
Text elements, Window, all other form elements
onKeyDown
Key pressed by user. Return faluse to cancel default action
Document, Image, Link, text elements
onKeyUp
Key released by user
Document, Image, Link, text elements
onLoad
Document or image finishes loading
Window, Images
onMouseDown
User presses mouse button. Return false to cancel default action
Document, Link, Image, button elements
onMouseOut
Mouse moves off element
Link, Image, Layer
onMouseOver
Mouse moves over element. For links, reutrn true to prevent URL from apprearing in the status bar.
Link, Image, Layer
onMouseUp
User releases mouse button. Return false to cancel
Document, Link, Image, button elements
onReset
Form reset reqeuested. Return false to prevent reset.
Form
onResize
Window is resized.
Window
onSubmit
Form submission requested. Return false to prevent submission
Form
onUnload
Document is unloaded
Window