Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Links opening in a new window

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    147

    Links opening in a new window

    Hi, could someone tell me how I can get a link on my page to open in a new window? (yes i tried google)

    Also, does anyone know any good website design forums other than Antionline?

    Thanks

  2. #2
    <a href="http://www.whereitlinksto.com" target="blank">your
    link here</a>

    there ya go

    v_Ln

  3. #3
    Senior Member
    Join Date
    Jan 2002
    Posts
    1,207
    You have to put a target attribute on the <a> element.

    If as valhallen says, you put <a target="blank"> then it may not *always* open in a new window, it will open in a window called "blank" (if that window already exists, it will be reused).

    Windows (and frames) have names, these cannot easily be seen, but are reused if you target another link at the same one. If that window doesn't exist, it is created.

    Perhaps you want <a target="_blank"> ?

  4. #4
    Senior Member
    Join Date
    May 2002
    Posts
    147
    I tried putting that as a link, but I got an error message "No such device or address". what have i done wrong?
    Mama always said, keep your virus definitions up to date.

  5. #5
    Senior Member
    Join Date
    Nov 2001
    Location
    Ireland
    Posts
    734
    yeah "_blank" will work better.

  6. #6
    Senior Member
    Join Date
    Jan 2002
    Posts
    1,207
    "No such device or address" sounds a bit dodgy.

    Are you sure you put in the href attribute correctly? AFAIK, setting the target to either "_blank" or "blank" should not cause that message, but screwing up the href (conceivably) might.

    Check that your href attribute contains a valid relative or absolute URL.

  7. #7
    Junior Member
    Join Date
    Aug 2001
    Posts
    17
    you need to use _blank. blank is not html 4.0 confirming..

    just add the target param to you a tag as alread described

    testtext

  8. #8
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,255
    _new will also work.
    Chris Shepherd
    The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
    \"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
    Is your whole family retarded, or did they just catch it from you?

  9. #9
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    I think he should use _oogyboogy
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  10. #10
    Hold down shift key when you click the link......

Posting Permissions

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