Consider the following examples of Javascript attributes in HTML elements:
<input type="button" onclick="somceFunc()" />
<input type="button" onclick="somceFunc();" />
<input type="button" onclick="somceFunc(); return false;" />
When should one end the someFunc()
call with a semi-colon, and when should the semi-colon be eliminated? Also, when should one end the attribute with a call to return false;
?
Thanks.