html click button to other page code example Example: onclick url <button onclick="location.href='logout.php';">logout</button>