The syntax format is as follows:
The following code creates a hyperlink, and nothing happens when the user clicks it.
In the following example, a warning message is displayed after the user clicks on the link:
<p>Click the link below to view the results:</p>
The parameter a in the following example will return undefined:
a = void (b = 5, c = 7 );
document.write('a = '+ a +' b = '+ b +'c =' + c );
# Contains a location information, the default anchor is #top, which is the top of the page.
When the page is very long, # will be used to locate the specific location of the page, the format is: # + id .
<a href="#pos">Click me to locate the specified location!</a>
<p id="pos">Tail anchor point</p>