Possible Duplicate:
Do you ever need to specify javascript: in an onclick?
What is better to write in MVC3 when on the onclick event for example we call function with functionName()? javascript:functionName() or just functionName()?
Actually the best is to not mix javascript and markup. So you could attach this onclick event handler unobtrusively using javascript in a separate file. But as far as your question is concerned, you don't need the javascript: prefix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With