Open In App
Related Articles

HTML DOM click() Method

Improve Article
Save Article
Like Article

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 click() {
        Hover over the radio button to simulate
        a mouse-click.
        <input type="radio" id="input1" onmouseover="click()">



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

  • Google Chrome 9 and above
  • Edge 12 and above
  • Internet Explorer 5.5 and above
  • Firefox 3 and above
  • Opera 10.5 and above
  • Safari 6 and above
Last Updated : 09 Jun, 2023
Like Article
Save Article
Similar Reads
Related Tutorials