• Load click in New window or Tab

    Home » Forums » Developers, developers, developers » Web design and development » Load click in New window or Tab

    • This topic has 4 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #450494

    Hi,

    Hopefully real simple.

    I know that in an text 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…?)

    Viewing 0 reply threads
    Author
    Replies
    • #1106816

      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.

      • #1106826

        (Edited by HansV to make URL clickable – see Help 19)

        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.html#type-frame-target%5B/url%5D
        http://www.w3.org/TR/html401/present/frames.html#adef-target%5B/url%5D

        So I guess there’s not much more to do about this??

        • #1106831

          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.

          • #1106832

            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) )

    Viewing 0 reply threads
    Reply To: Load click in New window or Tab

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: