A few paragraphs with various links. The link shows the technique that was used. href="javascript:doSomething();" Then there is some sort of rambling text between the links. href="#" onclick="doSomething();return false;" So, we have seen two examples so far, how about a third? href="javascript:;" onclick="doSomething();" This one is not as widely used as others: href="/" onclick="doSomething();return false;" This next one may not make much sense since it combines two different methods. href="javascript:doSomething();" onclick="doSomething(); return false;" I'm sure there are other techniques for invoking JavaScript from an anchor link.