when click table cell go to URL

Discussion in 'Javascript' started by Neal_rm, Feb 5, 2004.

  1. Neal_rm

    Neal_rm Guest

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

    Neal_rm, Feb 5, 2004
    1. Advertisements

  2. Neal_rm

    kaeli Guest

    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>

    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.
    kaeli, Feb 5, 2004
    1. Advertisements

  3. Neal_rm

    Neal_rm Guest

    Wow Thanks!
    Neal_rm, Feb 6, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.