javascript onclick function link to url 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