JS Events

Events refer the time of action i.e. when an action can be performed.  Example: when we kick on bike then the bike get started. hear kick is the event and start is action.

Some Common Events in Java Scripts are:

Mouse Events:

Event Performed
Event Handler
Description
click
onclick
When mouse click on an element
mouseover
onmouseover
When the cursor of the mouse comes over the element
mouseout
onmouseout
When the cursor of the mouse leaves an element
mousedown
onmousedown
When the mouse button is pressed over the element
mouseup
onmouseup
When the mouse button is released over the element
mousemove
onmousemove
When the mouse movement takes place.


Keyboard events:


Event Performed
Event Handler
Description
Keydown
onkeydown
When the user press the key
 Keyup
onkeyup
When the user n release the key


Form events:


Event Performed
Event Handler
Description
focus
onfocus
When the user focuses on an element
submit
onsubmit
When the user submits the form
blur
onblur
When the focus is away from a form element
change
onchange
When the user modifies or changes the value of a form element


Window/Document events


Event Performed
Event Handler
Description
load
onload
When the browser finishes the loading of the page
unload
onunload
When the visitor leaves the current webpage, the browser unloads it
resize
onresize
When the visitor resizes the window of the brows


Question : What is difference between java and javascript

Answer : Some people think that Java and JavaScript are same but both are two completely different languages. Java is a general-purpose objectoriented programming language from Sun Microsystems where as JavaScript is an object-based scripting language. Script refers to short programming statements to perform a task.

Programs

java script code to show the reservation system of XYZ

View Solution


java Script Application for Student attendance

View Solution


java script function max to find largest number

View Solution


JavaScript code that calculates the squares and cubes from 0 to 10

View Solution


JavaScript code to design a simple calculator to perform the following operations sum product difference and quotient

View Solution


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad Sarkari Exam Quiz