Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Denmark
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Load click in New window or Tab

    Hi,

    Hopefully real simple.

    I know that in an <a href>text</a> link: target="_blank" launches the link in a new window.

    But,
    1. what will I use if I want to launch just in a new tab in the tabbed browsers?
    2. does this apply to both IE and FF
    3. what will then happen in old versions of the browsers, where there's no support for the tabs? (do they just launch in new window instead or...?)
    Bests,
    RD


    PS: Wish there were a knob on the TV to turn up the intelligence. There's a knob called "brightness," but that doesn't work

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Load click in New window or Tab

    Both in IE7 and in FireFox, the user can specify whether external links will be opened in a new window or in a new tab. So it's a user setting.

  3. #3
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Denmark
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Load click in New window or Tab

    (Edited by HansV to make URL clickable - see <!help=19>Help 19<!/help>)

    I have noticed that part. Are just curious to know whether I can control the 'open' in more detail - with the more recent browser features as well.

    Normal default behaviour for a link where the 'target' parameter is not set - seems to be 'open in same window' (I guess).
    Subsequently - I can exercise some control on the link by changing the parameter to target="_blank" - thereby forcing the link to open in a new window.

    I've googled the subject a lot, but have so far only come across these four definitions:

    The following target names are reserved and have special meanings.

    _blank = The user agent should load the designated document in a new, unnamed window.
    _self = The user agent should load the document in the same frame as the element that refers to this target.
    _parent = The user agent should load the document into the immediate FRAMESET parent of the current frame. This value is equivalent to _self if the current frame has no parent.
    _top = The user agent should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent

    As found in: http://www.w3.org/TR/html401/types.h...e-frame-target
    http://www.w3.org/TR/html401/present...ml#adef-target

    So I guess there's not much more to do about this??
    Bests,
    RD


    PS: Wish there were a knob on the TV to turn up the intelligence. There's a knob called "brightness," but that doesn't work

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Load click in New window or Tab

    If you search, there are JavaScript hacks that do what you want, but I strongly recommend *not* using them:
    - The hacks wouldn't work if the user has disabled JavaScript.
    - I think it's a bad idea to override user preferences.

  5. #5
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Denmark
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Load click in New window or Tab

    Thanks for the input Hans - appreciate it.

    - and yes I fully agree. as stated initially - it was mostly out of curiosity (and of course a specific need // ;o) )
    Bests,
    RD


    PS: Wish there were a knob on the TV to turn up the intelligence. There's a knob called "brightness," but that doesn't work

Posting Permissions

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