SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Need help with onClick...

    Ok, I am using the mouseovers to change teh color of a table when the mouse goes over it. I also have it so when the user clicks either the link inside the table, or the highlighted table itself, they are brought to the location specified. To make this work (so the user can click the table, and still go to the location) I am using onClick, like this:

    Code:
    onClick="location.href='http://midtownmotors.co.uk/'; return true"
    However, I have some links that I want opened in a new window. I had been doing fine with the script that created a frame in the new window. However, the person that owned the site I was linking to, said he'd like to have their link shown in the address bar. I tried a few things, and none of them worked, so I tried to go back. Now my frame thing doesn't work anymore. Is there ANY easy way to have a new window open using an onClick like above? I just want a new normal window, nothing special.

    Thanks!

  2. #2
    The Legend Indian's Avatar
    Join Date
    Nov 2001
    Location
    Gods' Own Country
    Posts
    890
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try:
    onClick="window.open('http://midtownmotors.co.uk/')"
    Death --the last sleep? No, it is the final awakening.

    TinyPlanet.org
    Discuss and Debate World Events, Politics and Religion

  3. #3
    SitePoint Member
    Join Date
    Mar 2001
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I KNEW it was something simple!!!

    THANK YOU!


Bookmarks

Posting Permissions

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