« Rolling Star Lyrics by YUI | Main | Not Pron Spoilers 6 to 10 »

Making the entire div clickable

Home » Programming » Javascript

We could make an entire div tag clickable by redirecting the click to a page and by changing the cursor sytle to a pointer. This is good if you want your logo or your banner to be clickable, specially if the logo is embedded together with the banner. Making the entire banner clickable would be very beneficial to your site.

<div onclick="location.href='/';" style="cursor: pointer;">
</div>

TrackBack

TrackBack URL for this entry:
http://www.tildemark.com/cgi-bin/mt/mt-tb.cgi/40

About

This page contains a single entry from the blog posted on November 15, 2006 10:31 AM .

The previous post in this blog was Rolling Star Lyrics by YUI .

The next post in this blog is Not Pron Spoilers 6 to 10 .

Many more can be found on the main index page or by looking through the archives .

Creative Commons License
This weblog is licensed under a Creative Commons License .
Powered by
Movable Type 3.33