1 <Body>2 <ahref= "javascript:;">Point No response</a>3 <ahref= "javascript:void (0);">Point No response</a>4 <ahref= "javascript:void (Alert (' click Message ')");>Click the popup message, do not jump</a>5 6 <ahref= "void (0)">Click to jump to/void (0)</a>7 <ahref= "alert (' click Message ')">Click to jump to/alert (' click Message ')</a>8 <aonclick= "alert (' click Message ')"href= "void (0)">Click to play the message first, then jump to/void (0)</a>9 Ten <aonclick= "alert (' click Message '); return false"href= "void (0)">Click to play the message, do not jump</a> One </Body>
javascript: is a protocol that represents the execution of JS code.
href="javascript:;" is to remove the default behavior of the a tag, as with href="javascript:void (0)".
In JavaScript, Void is an operator that specifies that an expression is evaluated but does not return a value.
A tag in JavaScript and void