Chapter: Internet & World Wide Web HOW TO PROGRAM - The Ajax Client - JavaScript: Events

| Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail |

More Events - JavaScript(Js)

The events we covered in this chapter are among the most commonly used.

More Events

The events we covered in this chapter are among the most commonly used. A list of some events supported by both Firefox and Internet Explorer is given with descriptions in Fig. 13.9.




Event : Description

onabort : Fires when image transfer has been interrupted by user.

Onchange : Fires when a new choice is made in a select element, or when a text input is changed and the element loses focus.

onclick : Fires when the user clicks using the mouse.

ondblclick : Fires when the mouse is double clicked.

onfocus : Fires when a form element gains focus.

onkeydown : Fires when the user pushes down a key.

onkeypress : Fires when the user presses then releases a key.

onkeyup : Fires when the user releases a key.

onload : Fires when an element and all its children have loaded.

onmousedown : Fires when a mouse button is pressed down.

onmousemove : Fires when the mouse moves.

onmouseout : Fires when the mouse leaves an element.

onmouseover : Fires when the mouse enters an element.

onmouseup : Fires when a mouse button is released.

onreset : Fires when a form resets (i.e., the user clicks a reset button).

onresize : Fires when the size of an object changes (i.e., the user resizes a window or frame).

onselect : Fires when a text selection begins (applies to input or textarea).

onsubmit : Fires when a form is submitted.

onunload : Fires when a page is about to unload.

Fig. 13.9 | Cross-browser events.


Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail


Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.