I created a function in javascript that i add to an anchor as such
javascript :
somefunction = function () {alert(\'foo\')}
html :
You need to make somefunction() return false, or you need to explicitly add return false to your onclick handler. For example:
somefunction()
false
return false
onclick
anchor
This will have the browser ignore the href portion of the link when someone clicks on it.
href