Found 6710 Articles for Javascript

Why JavaScript Data Types are Dynamic?

Sravani S
Updated on 16-Jan-2020 10:18:32

198 Views

JavaScript also has dynamic types. That would mean the same variable used for holding different data types in JavaScript.Example                    var val;          val = "Amit";          document.write("String: "+val);          val = 20;          document.write("Number: "+val);          val = 40.90;          document.write("Number with decimals: "+val);                  

What is onkeyup event in JavaScript?

vanithasree
Updated on 19-Jun-2020 11:18:47

396 Views

The onkeyup event triggers when a key is released.ExampleYou can try to run the following code to learn how to work with onkeyup event in JavaScript −                                         Enter subject below in upper case and see what happpens.          

What is onsubmit event in JavaScript?

V Jyothi
Updated on 19-Jun-2020 11:19:19

4K+ Views

The onsubmit event is an event that occurs when you try to submit a form. You can put your form validation against this event type. The following example shows how to use onsubmit. Here we are calling a validate() function before submitting a form data to the web server. If validate() function returns true, the form will be submitted, otherwise, it'll not submit the data.ExampleThe following example is a code snippet showing the usage of the onsubmit event −                                                  .......                    

What is onkeypress event in JavaScript?

radhakrishna
Updated on 19-Jun-2020 11:18:13

382 Views

The onkeypress event triggers when a key is pressed and released. You can try to run the following code to learn how to work with onkeypress event in JavaScript −Example                                            

What is onkeydown event in JavaScript?

Priya Pallavi
Updated on 19-Jun-2020 11:17:27

398 Views

The onkeydown event triggers when a key is pressed. You can try to run the following code to learn how to work with an onkeydown event in JavaScript −Example                                            

What is onmouseup event in JavaScript?

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

872 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

3K+ 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

283 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.    

Advertisements