` * `` * `` * `
Ev Onclick
## HTML onclick Event Attribute
The `onclick` event attribute fires when the user clicks on an element. It is one of the most frequently used event handlers in web development, allowing you to trigger JavaScript functions or execute inline scripts in response to user interaction.
---
## Browser Support
The `onclick` attribute is universally supported across all major modern and legacy browsers:
* Google Chrome
* Mozilla Firefox
* Microsoft Edge / Internet Explorer
* Safari
* Opera
---
## Definition and Usage
The `onclick` attribute is an event listener that executes a specified piece of JavaScript when a pointing device button (such as a mouse, trackpad, or touch screen tap) is clicked and released on an element.
### Unsupported Elements
While `onclick` is a global event attribute, it cannot be used on the following HTML elements:
* ` `
* ``
* `
` * `` * `` * `
` * `` * `` * `
YouTip