href void(0) html code example
Example 1: javascript void(0) href
<!DOCTYPE html>
<html>
<head>
<title>Understanding JavaScript void(0)</title>
</head>
<body>
<a href="javascript:void(0);" ondblclick="alert('Click it twice!')">Click me not once, but twice.</a>
</body>
</html>
Example 2: where use javascript:void(0)
<a href="javascript:void(0)">Link</a>