How do you make a div tag into a link

anchor, html

Solution

JS:

<div onclick="location.href='url'">content</div>

jQuery:

$("div").click(function(){
   window.location=$(this).find("a").attr("href"); return false;
});

Make sure to use `cursor:pointer` for these DIVs

Problem

How do you make a div tag into a link. I would like my entire div to be clickable.

Original source

Related problems