onclick url

CSS
<button onclick="location.href='logout.php';">logout</button>
Source

Also in CSS: