Opening Document Library Files in New Tab

Hi,
Is there any setting to enable so that all the files saved in the document library (PDF, WORD etc) gets opened in a new tab.
Now its opening in the same tab. I need all other links to open in the same tab, only documents to a different tab.
I am using SharePoint 2010 Enterprise.
Any Help?
Thanks.

A little JavaScript employing jQuery does the job just perfectly.
$(document).ready(
function ()
// has to be on an interval for grouped doc libraries
// where the actual links are loaded only once a group
// is expanded
setInterval(
function ()
$("a[onclick*='return DispEx'][target!='_blank']")
.attr("target", "_blank")
.removeAttr("onclick");
// document type icons
$("td.ms-vb-icon>img[onclick]:not([documentUrl])")
.click(function (e)
window.open($(this).attr("documentUrl"), "_blank");
e.stopPropagation();
e.preventDefault();
return false;
.each(function ()
$(this).attr(
"documentUrl",
$.trim(String($(this).attr("onclick"))
.split("=")[1]
.replace(/["'{}]/g, "")
.split(";")[0])
this.onclick = null;
500
For other options you can also check:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
http://www.codeproject.com/Tips/722356/Open-Links-in-a-New-Window-in-SharePoint
http://www.benramey.com/2011/04/25/opening-all-sharepoint-2010-documents-in-a-new-window/

Similar Messages

  • When openning a PDF file, a new tab will open but it will be blank, it does not download or open any pdf files, this just started the last 3 days....!!!!

    Hi,
    I am on the verge of deleting Firefox from my computer as it has wasted hours of my time, and none of the online trouble-shooting answers are of any help.
    Until recently I could open PDF files in my browser window, and today its impossible to open any pdf file, it will not even download if I choose to download it.
    This issue has been going on and off for nearly a year, and I downloaded Nitro PDF add-on to solve it previously as the Adobe reader add-on didn't do anything. Today In the options menu of applications where I can select the program I want to open the PDF files with I can no longer find the NitroPDF reader as an option, so I choose the Adobe add-on and no matter how many re-starts it refuses to initiate any PDF files, all I get is a open and empty new tab.
    Internet explorer opens PDF files fine, so I know its not computer related.
    I am running Windows Vista Ultimate, Firefox Version 19.0.
    If there is a way of fixing this, please help because currently I am at the end of my patience.
    Regards,
    Emre

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • While opening a pdf file in new tab, the rest tab's mouse scroll not works until closing the pdf file tab

    I have noticed this problem in ff5 too. Suggest me is it a bug my machine or it came with it. If this issue is real i can provide more detail how often/ on what stages it happens.

    There's a Bug filed about that issue.

  • Can not use scroll mouse in html tab when open pdf file in new tab with middle button but will avaliable only after switch to pdf tab and switch back to html

    When I open a "pdf" file in new tab with middle mouse click. After few second my mouse will not able to scroll in page that I read. But it will be able to scroll only after I click to any opened pdf tab and click on pdf document and click back on previous tab to continue reading. It is not only happen on my laptop also on my desktop too. (winxp 4gb/8gb ram core2 duo 2.66)

    There's a Bug filed about that issue.

  • Since updating last time Firefox will not open new tabs unless I right click on a link. It won't open them via file or the tab at the top of the brwoser. Anyone know how to fix this?

    Since updating last time Firefox will not open new tabs unless I right click on a link. It won't open them via file or the tab at the top of the brwoser or usinf ctrl + t. Anyone know how to fix this?

    I can press ctrl for a new tab but otherwise a new tab does not open. I actually need help regarding this new Synch which apparently will be in Firefox automatically in an upcoming version so I am asking how that will synch with people who use LastPass-of course because I use this very successfully and really am not eager to change the set up that I have in place at this time.
    I have read through endless FAQ trying to find anyone else who has this question or concern but have found nothing. Can you please tell me how that service will get along with LastPass which does basically the same thing as Synch-it is probably spelled wrong as it looks wrong to me but if I click back to where this issue began, I will lose all of this question so please respond for the upcoming service synch.

  • I am trying to open a New Tab by clicking on File then New Tab, however a new tab will not open?

    I am trying to open a New Tab by clicking on File then New Tab, however a new tab will not open?

    Try disabling the Ask Toolbar extension, and see how it is.

  • Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.

    Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.

    Oh wow, looks like a new feature.
    The "page" links in a stylesheet with the address "resource://gre/res/TopLevelImageDocument.css". If you remove that reference, then the image displays in the old style.
    '''''Edit: Please skip the rest of this post and check out the next one.'''''
    There might be a more elegant solution than that, but you could use a bookmarklet to strip out that link when you want to view the page in its old style. A bookmarklet is a snippet of JavaScript you save on the Bookmarks toolbar for quick access.
    First, copy the following code to the clipboard (it's all one long line):
    <br>javascript:var ssheet=document.querySelector('link[href="resource://gre/res/TopLevelImageDocument.css"]'); if(ssheet)ssheet.parentNode.removeChild(ssheet); void 0;
    Next, if you are not displaying the Bookmarks Toolbar, use View > Toolbars > Bookmarks Toolbar to display it. (If you aren't using the classic Menu bar, press Alt+v to call up the old View menu. Right-clicking the gray area just below the page address also allows you to display the Bookmarks Toolbar.)
    Right-click on the Bookmarks Toolbar (or Mac equivalent of right-click!) and choose New Bookmark.
    Paste the code into the Location box (the second box).
    Then type a useful name in the Name box (e.g., Oldstyle Picture) and click Add.
    Now, when you want to tweak the image display, click the button to run the script.
    Manual clicking is a hassle, so it might make sense to look into other solutions. (Greasemonkey didn't seem to work; I think it might not run on .jpg files.)

  • When I open a website in a new tab (like a forum) it will start on the last page and at the bottom. So I have to scroll up. Is there a setting for this?

    I open my favorite forums website. When I open a thread in a new tab the window starts at the bottom. I have to scroll up to see the top of the thread.

    Does it do it if you run Firefox in [[Safe Mode]]? If it functions properly in that configuration, then one of your add-ons is the culprit.

  • ADF EBS Integration - How to open the ADF page in new tab or window

    Hi,
        We are building ADF custom applications and want to integrate them with EBS R12 (12.1.3) through Responsibilities and Menus.
    We have achieved session sharing and launching the Custom ADF app from EBS menu. The problem is, the Custom ADF page opens in the same page.
    Is there anyway to open the ADF application in new tab or window while launching from EBS Menu ? 
    Highly appreciate your help on this.
    Thanks,
    Ananthakumar

    Bhaskar,
    Refer old threads by searching for "new window" / "_blank"
    - Senthil

  • Opening a webpage in a new TAB in OBIEE 11G

    I am working on Action Links in OBIEE11g where I am supposed to open a webpage in a new TAB from a report using Action Links. I am able to open the link in a new window but not in new tab. Is there any solution for this? Any help would really be appreciated!

    CSS will not help you at all (style sheet can make your link nice and colorful, but will not any impact on what the link does).
    JS is the same, it will not help you because tab/windows is subject to the user settings (JS works into the webpage, but has no control, luckily for all of us, on the browser itself).
    Srini VEERAVALLI gave you the answer, the same (just different place) is valid for FF or Chrome.

  • When I click a link, it changes to the new page instead of opening the link in a new tab.

    I've gone to the options section several times and the right settings are in place but it still doesn't open in a new tab. I've never had this problem before. Should I change back to 3.6 or 4 beta? This problem occurs on the newest update. I believe it's 4.0.1 or something like that...I just loaded it yesterday. How can I fix this? Thank you.

    It's normal for links to open in the same tab as you browse if you left-click. You can Ctrl+click or middle click to open a link in a new tab. Are either of those broken?
    Some sites let you use a regular left click to open a link in a new tab (example: Google search settings), and some add-ons may change link behavior. Can you check whether one of your add-ons has been disabled?
    Tools > Add-ons > Extensions
    Also, if you use the Ask toolbar, try disabling it and see whether that makes any difference.

  • How to Open External Links in a New Tab

    I want links in web pages to open in the current tab so I have browser.link.open_newwindow=1. But how do I make links from extenal applications open in a new tab?

    Try setting the following to 3, not really sure if preference was actually removed or just won't accept 2, the intent was that the two variables be the same (I think)
    browser.link.open_external -- Where to open links sent to the browser from an external application
    * 2 (default in SeaMonkey): Opens external links in a new window
    * 3 (default in Firefox): Opens external links in a new tab in the most recent window
    * 1 (or anything else): Opens external links in current window
    Note: In Firefox 2 and above, via “Tools → Options → Tabs → New pages should be opened in:” (same as browser.link. open_newwindow)
    Pref removed from Firefox 3.5

  • Sharepoint document library file name column in content database?

    Hi,
    How to get a sharepoint document library file name column in content database?
    Thanks
    Poomani Sankaran

    You're not supposed to develop any solutions accessing the content database directly. It's not supported. Document Library Filename is stored in LeafName column, table: AllDocs.
    2.2.6.1 AllDocs Table
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Unnecessary alert when opening a link in a new tab

    Sometimes when I open a link in a new tab firefox opens it properly but alerts me with "Firefox doesn't know how to open this address, because the protocol (bar) isn't associated with any program."

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache Clear Cookies & Cache]
    * [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
    * Make sure that you are using the '''"Remember History"''' setting as described in this article -> [[Options window - Privacy panel]]
    -> Start Firefox in -> [[Safe Mode]] to check if your add-ons/extensions are causing the problems.
    * Also see this article -> [[Troubleshooting extensions and themes]]
    Check and tell if its working.

  • I upgraded to v3.6.22 today and have lost the ability to ctrl-click a link to open the link in a new tab; how do I get this back?

    I upgraded to v3.6.22 today and have lost the ability to ctrl-click a link to open the link in a new tab; how do I get this back?

    Strangely enough, putting my laptop into Hibernate mode solved the problem. It didn't even take a reboot.
    Running Windows Vista Enterprise SP2.

Maybe you are looking for

  • Offcycle run and stopping the bank transfer for one employee

    Hi, Please help with a soultion.... Jan 25th 2011- OFFCYCLE RUN  Jan 26th 2011 u2013 OFFCYCLE RUN .Bank Transfer Jan 26th 2011 u2013 Realised that no need to pay one additional bonus for one employee.                           Stop payment for one em

  • Hp 5512 photosmart not printing black ink

    I have tried several things and my printer will not print black ink.  Cleaned heads, and screens,  new cartridge, etc. must the printer be reset in some way to accept the black ink?  I have a Mac air.  It worked previously but stopped for some reason

  • How to setup a trackpad to write chinese charcters ?

    How to setup a trackpad to write Chinese characters?

  • Pre populate an item with source type="Database Column"

    Hello gurus, How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"? I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on s

  • Arch Linux Dark Wood Wallpaper updated

    Hey guys, I just put this together and thought I would share. Just merged a few layers together with gimp and came up with this. Hope you enjoy! http://dl.dropbox.com/u/15728429/Ryanarch2.jpg http://dl.dropbox.com/u/15728429/archdarkwoodblack.png Las