dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Hyperlink help

  1. #1
    Join Date
    Jul 2003
    Posts
    57

    Question Hyperlink help

    I currently have a table which is going to be used to link to my forums. However, I want to be able to click on the hyperlink and open a new page, I tried using some other code, but it didn't seem to work (the new window and my old page would load the forums)

    Please simply alter my coding:

    <table border="1" borderColorDark="#000000" borderColorLight="#444444" cellSpacing="0" width="132" height="27">
    <tr>
    <td bgcolor="#444444" style="color: #FFFFFF" onMouseOver="style.color='#FFFFFF'; style.backgroundColor='#992106';" onMouseOut="style.color='#FFFFFF'; style.backgroundColor='#444444';" onClick="window.location.href='site.html'" height="12" width="121"><a href="site.html"><font face="Verdana, Arial, Comic Sans MS" color="#CCCCCC" size="2">Latest
    News</font></a></td>
    </tr>
    </table>


    Any help would be greatly appreciated!

  2. #2
    Have you tried:
    "><a href="site.html" target="_new">

    You will need to remove the onclick event also.

  3. #3
    Join Date
    Jul 2003
    Posts
    57
    If I remove the onclick, then clicking on the cell itself won't go to the link...

  4. #4
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    I am just curious this probably wont work but I just want to see if it does lol, put a <a href="httpyoursite.com"> The table here </a> type of deal lol, then delete the link inside of the cell. It will probably not work but I am just curious to see if it will.

  5. #5
    Join Date
    Jul 2003
    Posts
    57
    Well, I already know how to make a table into a hyperlink- anyways, I guess I just have the link not go to another page- I'll just have it load on the same page- it will be better anyhow. Thanks anyways!

  6. #6
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    This means I have to test my idea on my own time ahhhhh. I was just curious if it was possible.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles