Baseline Widely DOM API
api.HTMLElement.click
Granular MDN Browser Compat Data support history across 14 tracked browsers.
Specification Area
DOM API
Standard track
First Core Launch
Firefox 3
2008-06-17
Core-3 Stability
1,499d (4.1y)
Last: Safari (2012-07-25)
Baseline Feature
Widely
Mouse events
Browser Support Timeline
Notes (8)
Chrome: Before Chrome 19,click() is only defined on buttons and inputs.Firefox, FF And: Before Firefox 5, click() is only defined on buttons and inputs, and has no effect on text and file inputs.Firefox: Starting in Firefox 75, the click() function works even when the element is not attached to a DOM tree.Chr And: Before Chrome Android 25, click() is only defined on buttons and inputs.FF And: Starting in Firefox for Android 79, the click() function works even when the element is not attached to a DOM tree.WV And: Before WebView Android 4.4, click() is only defined on buttons and inputs.Samsung: Before Samsung Browser 1.5, click() is only defined on buttons and inputs.Quest: Before Quest Browser 5.0, click() is only defined on buttons and inputs.Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 9 | 2011-02-03 | Supported |
| Firefox | desktop | 3 | 2008-06-17 | Supported |
| Safari | desktop | 6 | 2012-07-25 | Supported |
| Edge | desktop | 12 | 2015-07-29 | Supported |
| Chrome Android | mobile | 18 | 2012-06-27 | Supported |
| Firefox for Android | mobile | 4 | 2011-03-29 | Supported |
| Safari on iOS | mobile | 6 | 2012-09-10 | Supported |
| WebView Android | mobile | 4.4 | 2013-12-09 | Supported |
| WebView on iOS | mobile | 6 | 2012-09-10 | Supported |
| Samsung Browser | mobile | 1.0 | 2013-04-27 | Supported |
| Opera | desktop | 10.5 | 2010-03-02 | Supported |
| Opera Android | mobile | 11 | 2011-03-22 | Supported |
| Deno | server | — | — | — |
| Node.js | server | — | — | — |
| Bun | server | — | — | — |
| Quest Browser | xr | 5.0 | 2018-07-01 | Supported |
| Internet Explorer | desktop | 5.5 | 2000-07-06 | Supported |