What does an HTML onclick attribute do?
onclick
Applies a CSS class without executing JavaScript.
Runs only when the entire page finishes loading.
Runs its JavaScript when the element is clicked.
Selects the element from the DOM for later use.