Forum Moderators: open
2) Fine. (Might as well get into the habit of quoting your attribute values though)
3) This can be useful, on certain elements. If the function returns
false, the default click action will not be executed. For instance: function something()
{
return Math.random() > 0.5;
}-----------
<a href="example.htm" onclick="return something();">
This link will only take you somewhere sometimes</a>