How to "unset" "location.href"?

onclick=location.href is set by jQuery in one function.
How to set onclick=location.href = nothing by jQuery?
i.e. onclick = do nothing


see unbind()

I don’t know what you are trying to achieve by changing this but did you try to set something else in that like this?

onclick = null;
return false;

Oh yes unbind() is there for unbinding the events.