HTML - how to make an entire DIV a hyperlink? [duplicate]
You can add the onclick for JavaScript into the div.
<div onclick="location.href='newurl.html';"> </div>
EDIT: for new window
<div onclick="window.open('newurl.html','mywindow');" style="cursor: pointer;"> </div>
You can put an <a>
element inside the <div>
and set it to display: block
and height: 100%
.