/

HTML / CSS / JavaScript Tutorial

JavaScript DOM HTML method: click()

[this page | pdf | back links]

The click() method (when applied to HTML elements in the JavaScript DOM) simulates a mouse click on element.

 

It has the following syntax with no parameters. It does not return a value.

 

element.click()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile