I would still take advantage of the experience and capabilities of this community.
My question is: why, if we have code similar to
<input name="" type="checkbox" onClick="first()" onChange="second()">
<script type="text/javascript">
function first(){
console.log('first')
}
function second(){
console.log('second')
}
</script>
in firefox onclick event fires before onchange, but in chrome - vice versa?
Thanks for your answers, maybe I didn’t explain in the best way.
I know that with onMuseDown the problem is solved, but I want to understand the reason for this behavior in Chrome with the onchange and onclick event
source
share