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()?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.