Found 10878 Articles for Web Development

What is onmouseup event in JavaScript?

mkotla
Updated on 19-Jun-2020 11:16:53

681 Views

The onmouseup event triggers when a mouse button is released.ExampleYou can try to run the following code to learn how to work with onmouseup event in JavaScript −                                         This is demo text for mouseup event.    

What is onmouseout event in JavaScript?

Nikitha N
Updated on 19-Jun-2020 11:16:12

1K+ Views

It is an event that triggers when the mouse pointer moves out of an element.ExampleYou can try to run the following code to learn how to work with onmouseout event in JavaScript −                                         This is demo text for mouseover event.    

What is onmouseover event in JavaScript?

Krantik Chavan
Updated on 19-Jun-2020 11:08:00

2K+ Views

The onmouseover event triggers when the mouse pointer moves over an element.ExampleYou can try to run the following code to learn how to work with onmouseover event in JavaScript −                                         This is demo text for mouseover event.    

What is onmousemove event in JavaScript?

Giri Raju
Updated on 19-Jun-2020 11:07:27

1K+ Views

The onmousemove event triggers when the mouse pointer moves.ExampleYou can try to run the following code to learn how to work with onmousemove event in JavaScript −                                         This is demo text for mousemove event.    

What is onmouseleave event in JavaScript?

Sreemaha
Updated on 19-Jun-2020 11:06:19

181 Views

The onmouseenter event triggers when after the mouse hover is moved out.ExampleYou can try to run the following code to learn how to work with an onmouseleave event in JavaScript −                                         This is demo text for mouseleave event.    

What is onmouseenter event in JavaScript?

Nishtha Thakur
Updated on 19-Jun-2020 11:06:58

177 Views

The onmouseenter event triggers when you mouse hover the pointer.ExampleYou can try to run the following code to learn how to work with onmouseenter event in JavaScript −                                         This is demo text for mouseenter event.    

What is onmousedown event in JavaScript?

varma
Updated on 19-Jun-2020 11:04:27

349 Views

The onmousedown event triggers when a mouse button is pressed.ExampleYou can try to run the following code to learn how to work with onmousedown event in JavaScript −                                         This is demo text. The onmousedown event triggers when a mouse button is pressed    

What is ondblclick event in JavaScript?

Smita Kapse
Updated on 19-Jun-2020 11:05:15

235 Views

Use the ondblclick event to generate an event on double click.ExampleYou can try to run the following code to learn how to work with ondblclick event in JavaScript −                                         Double Click me    

What is oncontextmenu event in JavaScript?

usharani
Updated on 19-Jun-2020 11:03:46

288 Views

On right click of an element, when the context menu opens, then it is known as oncontextmenu in JavaScript.ExampleYou can try to run the following code to learn how to work with oncontextmenu event in JavaScript −                                         Right click    

How to add hours and minutes to a date with JavaScript?

Saurabh Jaiswal
Updated on 22-Aug-2022 08:06:32

9K+ Views

In this tutorial, we will learn how to add hours and minutes to a date with JavaScript. We have multiple methods to achieve this which are the following. Add hours using the setHours() Method. Add minutes using the setMinutes() Method. Add hours or minutes with the getTime() Method. Add hours using the setHours Method JavaScript date setHours() method sets the hours for a specified date according to local time. Syntax Following is the syntax to apply the setHours() method to add hours to date − Date.setHours(hours, minutes, seconds, ms) Note − Parameters except the first one are ... Read More

Advertisements