Tuesday, August 26, 2008

Making Div Clickable

Here is a simple trick to make entire div clickable which is needed when you want to make a banner clickable for a site:

<div id="banner" style="cursor: pointer;" onclick="location.href='http://javaswamy.blogspot.com/';">

The best part is inside the Div you can have other links redirecting user to a different page.

No comments: