Aspects


vs


Home Page
About Us
Feedback

Onclick

An event which occurs when user clicked an object

Onfocus

Onfocus is an event in HTML and JavaScript that triggers when the referenced object gains focus



Others

Example

Even if the onblur and onclick do not get along very well but obviously onfocus and yes onblur;since even after the menu is closed the onfocus is still valid for the element clicked inside

from question  

Onclick() and onblur() ordering issue

Also the onfocus event would be more appropriate than onclick because it handles other scenarios such as pressing the tab key to change the active input

from question  

Changing image on click of textbox

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0