JavaScript inline events syntax

Posted by Mic on Stack Overflow See other posts from Stack Overflow or by Mic
Published on 2010-02-03T09:38:24Z Indexed on 2010/03/25 0:53 UTC
Read the original article Hit count: 496

Is there any reason to use one of the following more than the others:

<input type="button" value="b1" onclick="manageClick(this)" />
<input type="button" value="b2" onclick="manageClick(this);" />
<input type="button" value="b2" onclick="manageClick(this);return false;" />
<input type="button" value="b3" onclick="return manageClick(this);" />
<input type="button" value="b4" onclick="javascript:return manageClick(this);" />

And please do not spend your valuable time to tell me to use jQuery or attachEvent/addEventListener. It's not really the objective of my question.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events