As Other individuals have mentioned, It is really much better however to use return Bogus; in the click handler than utilize the javascript: protocol.omgomg 141k145145 gold badges292292 silver badges351351 bronze badges three 10 You need to use just href="javascript:" for the same goal. As said in The solution for this concern, the void(0) section