$ 0 0 You don't need the javascript: protocol.<a href="#" onclick="foo(); return false">Run Foo</a>is all you need.