how to use onclick for a url code example Example: onclick url <button onclick="location.href='logout.php';">logout</button>