onclick= location.href='page url.html' code example Example: onclick href onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"