api.HTMLElement.click

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 9 on 2011-02-03 Note: Before Chrome 19, click() is only defined on buttons and inputs.

In Chrome Android version 18 on 2012-06-27 Note: Before Chrome Android 25, click() is only defined on buttons and inputs.

In Edge version 12 on 2015-07-29

In Firefox version 3 on 2008-06-17 Note: Before Firefox 5, click() is only defined on buttons and inputs, and has no effect on text and file inputs. Starting in Firefox 75, the click() function works even when the element is not attached to a DOM tree.

In Firefox for Android version 4 on 2011-03-29 Note: Before Firefox 5, click() is only defined on buttons and inputs, and has no effect on text and file inputs. Starting in Firefox for Android 79, the click() function works even when the element is not attached to a DOM tree.

In Internet Explorer version 5.5 on 2000-07-06

In Quest Browser version 5.0 on undefined Note: Before Quest Browser 5.0, click() is only defined on buttons and inputs.

In Opera version 10.5 on 2010-03-02

In Opera Android version 11 on 2011-03-22

In Safari version 6 on 2012-07-25

In Safari on iOS version 6 on 2012-09-10

In Samsung Internet version 1.0 on 2013-04-27 Note: Before Samsung Internet 1.5, click() is only defined on buttons and inputs.

In WebView Android version 4.4 on 2013-12-09 Note: Before WebView Android 4.4, click() is only defined on buttons and inputs.

In WebView on iOS version 6 on 2012-09-10