I am using jslint to check my javascript.
It’s giving me repeatedly the following error:
Problem at line 236 character 18: Script URL.
a.href = "javascript:DoSomething(" + messageID + ");"
Probably, jslint is right. What would be the correct way to set the .href?
Give it an
onclickevent handler instead, like this:Leave the
hrefas#and either stop propgation orreturn falseto stop the scroll, for example: