go to webpage on button onClick JS 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