Possible Duplicate:
When do I need to specify the JavaScript protocol?
for example
<body onload="javascript:something();">
in this code, should I put javascript: ?
some of the codes attatch javascript:,
but some don’t.
what is the safe and correct?
A better solution would be to avoid explicit use of JavaScript in your markup altogether and to use something like jQuery to extract it all to a separate file; you can then do something like this: