#1
  1. Contributing User
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Apr 2011
    Posts
    939
    Rep Power
    1330

    External links in new window - target=_blank or javascript


    Google huffs and puffs about links opening in new windows - taking control away from the user, bad, bad, bad - even though many users actually appreciate it:
    https://inbound.org/discuss/external...b-why-any-data

    Long, long time ago I remember reading that you can hide the fact that if the link is going to open in a new window by using some javascript like
    Code:
    <a href="http://forums.seochat.com" onclick="window.open('http://forums.seochat.com','new','');return false">
    So first off - does anyone know if that was ever true/is true?

    Now most people these days mark their external links with an icon so users are forewarned. That means Google shouldn't grumble but can its bot really be expected to pick up on this as there are many methods to achieve it - an inline image, a background image or a :after image.

    I do mine like this:

    Code:
    <a class="new-window" target="_blank" href="http://forums.seochat.com">
    and in the css

    Code:
    .new-window:after { content: url(/images/new-window-icon.png); }
    What are the views on which method is better? Is this just a case of you can't please Google all of the time? Strangely little discussion on this around the web....
  2. #2
  3. Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Jan 2011
    Location
    Buffalo, NY
    Posts
    315
    Rep Power
    539
    I haven't seen anything about it being a ranking factor, not that it couldn't be. It seems like Google can crawl links using onclick="". I'm guessing they would figure out that it was opening in a new window.

    We Tested How Googlebot Crawls Javascript And Here's What We Learned

    I think the CSS way you presented is a good method to let users know.
  4. #3
  5. My views are my own ;)
    SEO Chat Good Citizen (1000 - 1499 posts)

    Join Date
    Jun 2012
    Location
    Clifton Park, New York
    Posts
    1,182
    Rep Power
    1550
    I would appreciate some links to discussions / articles where Google would express their attitude towards target=_blank
    I never heard they ever expressed anything against those...

    Either way, I'd imagine the bot would be able to read both target="_blank" and the javascript if they wanted it to be a ranking factor...
    Last edited by Ann Smarty; Apr 18th, 2016 at 04:02 PM.
    Everything will be ok in the end

    If it's not ok, it's not the end
  6. #4
  7. Dinosaur
    SEO Chat High Scholar (3500 - 3999 posts)

    Join Date
    Jun 2011
    Location
    UK
    Posts
    3,559
    Rep Power
    6220
    Must admit I was a little surprised by this saying google dont like target="_blank" its quite a common and valid thing to do to help users in some cases and not something I have seen anything about.
    I know there has been some talk about this approach being deprecated in the future and I think I am right in saying its gone already with XHTML 1.0 and 1.1 but I could be wrong there. I have seen javascript being used as a a way to open a new tab so there could be some truth in it.

    I do know google hate background popups, you know the type, you click onto a page and 1 or more new windows open and when you close them new ones open. These ya fair game and could be what you have read about but used in normal use I personally dont see the problem.

    Comments on this post

    • Ann Smarty agrees : Exactly... First time I've ever heard about Google disliking target=_blank :/
  8. #5
  9. Contributing User
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Apr 2011
    Posts
    939
    Rep Power
    1330
    Oh kack! I don't remember where I read it and now I can't find it but it was definitely an official Google guideline.

    It was all about not being a good 'user experience' type stuff (like this: https://www.smashingmagazine.com/200...n-new-windows/ ) because if a user wanted to open a new window they could do it but I always felt not all users know how and in certain circumstances it is helpful. For example I have 'how to' guides with links to tutorials about each step so I see new windows as helpful here.

    Perhaps Google has dropped it as an issue and that's why I can't find it .....
  10. #6
  11. No Profile Picture
    Registered User

    Join Date
    Apr 2016
    Posts
    26
    Rep Power
    0
    Taking a user off a page in an external window is good for user experience when used correctly. Google usually frowns on things such as what Cheddars said about "background popups" which in my opinion does not add any good user experiences. Great job on using the CSS for new window indication, I've done it in the past as well.

Similar Threads

  1. _blank effect links
    By midnightdusk in forum Google Optimization
    Replies: 18
    Last Post: Oct 28th, 2009, 08:55 PM
  2. Can Google follow javascript: window.open ?
    By Optimist5 in forum Google Optimization
    Replies: 3
    Last Post: Oct 10th, 2009, 02:09 PM
  3. External Javascript Links
    By Jasber in forum Search Engine Optimization
    Replies: 2
    Last Post: Aug 8th, 2004, 10:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo