when click table cell go to URL

N

Neal_rm

Hi all,
I have an easy one I think. How do you go to a URL when you click a
table cell?


Neil_RM
 
K

kaeli

Hi all,
I have an easy one I think. How do you go to a URL when you click a
table cell?

In newer browsers, onClick of TD is supported. If you have to support
old browsers, you pretty much can't. You have to use a link in the cell.

So, for newer browsers that support TD onClick
<td onClick="top.location='newLocation.html';">content</td>


--
--
~kaeli~
Hey, if you got it flaunt it! If you don't stare at someone
who does. Just don't lick the TV screen, it leaves streaks.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 
N

Neal_rm

Wow Thanks!
Robert
kaeli said:
In newer browsers, onClick of TD is supported. If you have to support
old browsers, you pretty much can't. You have to use a link in the cell.

So, for newer browsers that support TD onClick
<td onClick="top.location='newLocation.html';">content</td>


--
--
~kaeli~
Hey, if you got it flaunt it! If you don't stare at someone
who does. Just don't lick the TV screen, it leaves streaks.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top