HTMLElement.click()

 

HTMLElement.click() metodu element üzerinde tıklama olayını simule eder.

click() geçerli elamanlar üzerinde kullanıldığında (<input> gibi), o elementin tıklama olayını (click event) tetikler. Bu olay döküman ağacındaki (veya olay zinciri) daha yüksek elemanlara ulaşır ve onların tıklama olaylarını tetikler.

 

Syntax

element.click()

Specification

Specification Status Comment
Document Object Model (DOM) Level 2 HTML Specification Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
clickChrome Full support 9
Notes
Full support 9
Notes
Notes Before Chrome 19, click is only defined on buttons and inputs.
Edge Full support 12Firefox Full support 3
Notes
Full support 3
Notes
Notes Before Firefox 5, click is only defined on buttons and inputs, and has no effect on text and file inputs.
IE Full support YesOpera Full support YesSafari Full support 6
Notes
Full support 6
Notes
Notes Before Safari 6, click is only defined on buttons and inputs.
WebView Android Full support Yes
Notes
Full support Yes
Notes
Notes Before Android WebView 4.4, click is only defined on buttons and inputs.
Chrome Android Full support 18
Notes
Full support 18
Notes
Notes Before Chrome 19, click is only defined on buttons and inputs.
Firefox Android Full support 5Opera Android Full support YesSafari iOS Full support Yes
Notes
Full support Yes
Notes
Notes Before Safari 6, click is only defined on buttons and inputs.
Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.