Attributi di evento di XHTML |
La capacit� di innescare le azioni nel browser dagli eventi del HTML � nuova al HTML 4.0, come l'esecuzione del Javascript quando un utente scatta sopra un elemento del HTML. Qui � una lista degli attributi che definiscono le azioni di evento. questi attributi possono essere inseriti nelle modifiche del HTML
Eventi della finestra
Questi sono validi soltanto negli elementi del frameset e del corpo
Attribute |
Value |
Description |
onload |
script |
Script to be run when a document loads |
onunload |
script |
Script to be run when a document unloads |
Formare gli eventi dell'elemento
Questi sono validi soltanto negli elementi della forma.
Attribute |
Value |
Description |
onchange |
script |
Script to be run when the element changes |
onsubmit |
script |
Script to be run when the form is submitted |
onreset |
script |
Script to be run when the form is reset |
onselect |
script |
Script to be run when the element is selected |
onblur |
script |
Script to be run when the element loses focus |
onfocus |
script |
Script to be run when the element gets focus |
Eventi della tastiera
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param,
script, style, and title elements.
Attribute |
Value |
Description |
onkeydown |
script |
What to do when key is pressed |
onkeypress |
script |
What to do when key is pressed and released |
onkeyup |
script |
What to do when key is released |
Eventi del mouse
These are not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param,
script, style, and title elements.
Attribute |
Value |
Description |
onclick |
script |
Action will be taken on mouse click |
ondblclick |
script |
Action will be taken on doubleclicking the mouse |
onmousedown |
script |
Action to be performed when mouse button is pressed |
onmousemove |
script |
Action to be performed when mouse pointer moves |
onmouseover |
script |
Action to be performed when mouse pointer moves over an element |
onmouseout |
script |
What to do when mouse pointer moves out of an element |
onmouseup |
script |
What function to carry when mouse button is released |
Keywords: xhtml tutorial, xhtml validator, html xhtml, tag com xhtml, xhtml editor, xhtml templates, xhtml 1.0, xhtml code, xhtml doctype, xhtml validation
|