Skip to content
Related Articles

Related Articles

Improve Article

HTML | DOM click() Method

  • Last Updated : 25 Jul, 2019

The click() method is used to simulate the mouse click on an element. This method works exactly the same as the element is manually clicked.


Parameters: No parameters required.

Return Value: No return value.

Example: In this example, when the cursor goes over the radio button, it’ll execute the mouse click event and the radio button is checked as it is clicked manually.

<!DOCTYPE html>
        HTML | DOM click() method
    <!--script to stimulate mouse click-->
        function clck() {
      Hover over the radio button to simulate
      a mouse-click.
        <input type="radio" id="input1"

Before hovering on the radio button:

After hovering on the radio button:

Supported Browsers: The browser supported by DOM click() Method are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :