Forum Discussion

zacherynuk's avatar
zacherynuk
Explorer
13 years ago

External Links - open in new window/tab

Is there a way (i can't see it in profile option) that we can make external links open in a new window ?

It's killing me on both this forum and MTBS3D when using a none 3 button mouse....

3 Replies

  • You can (in individual posts) at MTBS3D, but that method does not work here. I discovered it in one of PalmerTech's old posts. I do not see any way to do it for all posts as you requested, but that might be more of a browser-specific option (or a browser plug-in) than a forum preference setting. Rather the opposite of the typical popup blocker, I think, so perhaps harder to find.

    EDIT: Found it. Here:
    http://www.mtbs3d.com/phpBB/viewtopic.php?f=120&t=13980&start=0#p70025
    Click the link in PalmerTech's post, and see the popup link.

    Here is the code:
    Awesome!  I have this gun on the way: http://www.amazon.com/STAR-Dragon-AEG-Airsoft-Rifle/dp/B00547O6O0" onclick="window.open(this.href);return false;

    Looking forward to building a nice tracked gun, hopefully with whatever you figure out. :D

    I tested variations of that method and it only works at MTBS3D, and only when NOT inside URL tags.

    If anybody knows a way to do popup links here, please share. Thanks.

    *** TEST *** : http://www.amazon.com/STAR-Dragon-AEG-Airsoft-Rifle/dp/B00547O6O0" onclick="window.open(this.href);return false;

    *** TEST2 *** : http://www.amazon.com/STAR-Dragon-AEG-Airsoft-Rifle/dp/B00547O6O0"%20onclick="window.open(this.href);return%20false;

    No, not working here...
  • Not really sure about the latest recommendations, but at some point in web development it was considered bad practice to open another tab or window from a link. It was up to the user to "right click" to open in another tab if they wanted. So the target attribute for links was not considered valid.

    But I think in HTML5 it is now OK to use target attributes again. I think it would be up to the forum mods to change a setting, or implement new code to add a target attribute to links.