Suppose that we have:
<input type="button" name="button" value="Validate Payment" onclick="Validate()" />
We can put in the onclick:
onclick="Validate"onclick="Validate()"onclick="Validate();"
My question is what is the difference between these 3 implementation
console.log(Validate))So there’s no difference between #2 and #3, functionally.
Please note that inline event handlers are bad practice, like mentioned in this comment by jbabey.