• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    Why Do Links Open in New Tabs Sometimes, & in Same Tab Sometimes?

    Opera for Mac
    tabs links
    7
    8
    6139
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stevenjcee
      stevenjcee last edited by

      It seems that clicking links is having erratic results, sometimes a new tab, other times the same, which messes me up when I'm in the middle of writing a comment, etc. How can I get it to always do one or the other?

      Reply Quote 0
        1 Reply Last reply
      • A Former User
        A Former User last edited by

        Links that are set to open in a new tab have special code added to them:
        :link[target="_blank"], :visited[target="_blank"], :link[target="_new"], or :visited[target="_new"]

        Links lacking code like that will open in the same tab. You can force a link to open in a new tab by middle-clicking it.

        Reply Quote 0
          1 Reply Last reply
        • sgunhouse
          sgunhouse Moderator Volunteer last edited by

          He missed javascript links, but otherwise yeah. The page designer decides whether links should open in the same page or a new one. On many sites, it is set so that off-site links open in a new tab, while links on the same site open in the same tab.

          Reply Quote 0
            1 Reply Last reply
          • A Former User
            A Former User last edited by

            With the update 51.0 I notice that sometimes, cmd-clicking links will open in the same tab and sometimes in a new tab (google search result for example).
            [ Version: 51.0.2830.34, OSX 10.12.6]

            Reply Quote 0
              1 Reply Last reply
            • A Former User
              A Former User last edited by

              Is there not a preference setting to make every new link, web search result, etc. open in a new tab? Safari and Chrome both have this. I just started re-using Opera again and was surprised when tabs I was using were replaced. I don't want to have to use the Control key to force the new tab option every time.

              Reply Quote 0
                leocg 1 Reply Last reply
              • leocg
                leocg Moderator Volunteer @Guest last edited by

                @mvbmac Nope, there isn't. And I couldn't find one in Chrome either.

                Reply Quote 0
                  1 Reply Last reply
                • A Former User
                  A Former User last edited by

                  You know what, now that you mention it, I can't find that command in Chrome preferences any more, either. It sure used to be in there, and that's how my Chrome app behaves. Strange!

                  Reply Quote 0
                    1 Reply Last reply
                  • seezee
                    seezee last edited by

                    The way the links open is strictly up to the link author. AFAIK, no browser can override that behavior.

                    At some point, the "rel" tag may also affect links as browsers adopt the recommended behavior. rel=external is supposed to open in a new tab or window.

                    Reply Quote 0
                      1 Reply Last reply
                    • First post
                      Last post

                    Computer browsers

                    • Opera for Windows
                    • Opera for Mac
                    • Opera for Linux
                    • Opera beta version
                    • Opera USB

                    Mobile browsers

                    • Opera for Android
                    • Opera Mini
                    • Opera Touch
                    • Opera for basic phones

                    • Add-ons
                    • Opera account
                    • Wallpapers
                    • Opera Ads

                    • Help & support
                    • Opera blogs
                    • Opera forums
                    • Dev.Opera

                    • Security
                    • Privacy
                    • Cookies Policy
                    • EULA
                    • Terms of Service

                    • About Opera
                    • Press info
                    • Jobs
                    • Investors
                    • Become a partner
                    • Contact us

                    Follow Opera

                    • Opera - Facebook
                    • Opera - Twitter
                    • Opera - YouTube
                    • Opera - LinkedIn
                    • Opera - Instagram

                    © Opera Software 1995-