Events in JavaScript

We will discuss various events in JavaScript and associated triggers with example. Some practical examples we will develop through demo of these scripts.
Mouse EffectDescription
onMouseover & onMouseoutchange the background color of row or swap images on Mouseover
onMousedown & onMouseupEvents triggered when Mouse is clicked and when it is released.
onMousemoveWhen mouse is moved over the elements this event is triggered
onClickDisplay of Layer with onClick event of button
onbluronBlur event when focus moves out or on lost focus
ondblClickManaging both Single and Double click events
Keyboard EventsDescription
onKeyPressWhile pressing a key the event to trigger
onKeyDownEvents to trigger whle a key is down
onKeyUpEvents to trigger on release of a key on keyboard

OnFocus Event

We can trigger events when we focus on any form component like textbox, radio button , checkbox etc. This can be achieved by shifting crusher to the component or by moving it by using tab , we can click on the component and keep the focus on it.

onunload event

We can display a message or trigger some script when visitor exit the page or closes the browser tab.

Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




    Post your comments , suggestion , error , requirements etc here .




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer