Event handling in java script
Event handing is a way to capture the events and perform some action.
syntax:
<tag attribute1 attribute2 onevent name="java script code">
java script event:
onClick-a document or file is clicked
onDblclick-a document or file is double clicked
onKeyUp-the user release a key
onKeyDown-the user press a key
onkeyPress-the user press and releases a key
onmouseUp-the user release a mouse button
onmouseDown-the user press a mouse button
onmousemove-the user move the mouse button
onReset-the user reset a form
onSubmit-the user submit a form
0 Comments