link onclick code example
Example 1: onclick href
onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"
Example 2: on click in a tag
<a onclick='newwin()'>Anchor</a>
onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"
<a onclick='newwin()'>Anchor</a>