javascript dom button onclick link to page code example
Example 1: onclick url
<button onclick="location.href='logout.php';">logout</button>
Example 2: onclick go to url
onclick go to url
<button onclick="location.href='logout.php';">logout</button>
onclick go to url