Possible Duplicate:
When do I need to specify the JavaScript protocol?
onclick=“javascript:func()” vs. onclick=“func()”
What exactly is the difference between the two code examples below?
<input type="button" value="click me" onclick="a()">
and
<input type="button" value="click me" onclick="javascript:a()">
Where
a()
is any JavaScript function.