Learn Javascript Events
JavaScript Events Tutorial Table of Contents What is an Event? Different types of events onClick onLoad and onUnload onChange onFocus onBlur onMouseOver and onMouseOut Linking external JavaScript in the current HTML. return statement JS Home What is an Event? In JavaScript, an event is an action performed by a user on a webpage. Different types of events: Onclick : It occurs when user clicks a mouse button . There are multiple types of mouse events such as DoubleClick, mouse over, drag and drop etc., We will learn all of them in details in later topics. Onload/OnUnload : when web page is loading, it is said to be onload event, when page closed then it is called as unload event. Mouseover/hotspot : when mouse placed/moved on to image/region, this even occurs. Onfocus, Onblur : When a user selects/deselects, an input field in an HTML, these events are fired. Onsubmit: When an HTML form is submitting. Keypress : When key pressed on keybo...