locked
Open Quick Launch link in new Window or New Tab? RRS feed

  • Question

  • Is it possible to open Quick Launch link/URL in new Window or Tab in Project Server 2010?

    Like if I have a link to Google.com, is it possible to open it in new tab when we click on that? 

    Tuesday, March 19, 2013 5:19 AM

Answers

  • Hi there,

    This is not possible by default out of the box. You could may be add some JavaScript on to the pages to do this. Otherwise just hold down the Ctrl key when clicking the link to open in a new tab or hold down the shift key when clicking the open in a new window.

    Thanks

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS

    • Proposed as answer by Khurram Jamshed Wednesday, March 20, 2013 10:34 AM
    • Marked as answer by PWMatherMVP Tuesday, May 27, 2014 7:24 AM
    Tuesday, March 19, 2013 9:57 AM

All replies

  • Hi there,

    This is not possible by default out of the box. You could may be add some JavaScript on to the pages to do this. Otherwise just hold down the Ctrl key when clicking the link to open in a new tab or hold down the shift key when clicking the open in a new window.

    Thanks

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS

    • Proposed as answer by Khurram Jamshed Wednesday, March 20, 2013 10:34 AM
    • Marked as answer by PWMatherMVP Tuesday, May 27, 2014 7:24 AM
    Tuesday, March 19, 2013 9:57 AM
  • Paul,

    When I hold the shift / Ctrl key and click the link, it opens in new window but the website is still opened in a webpart of Project server. What I want is to redirect the user to that perticular website.

    Thursday, March 21, 2013 7:14 AM
  • Paul,

    Can you please give me more information on the JavaScript?

    Wednesday, March 27, 2013 5:46 AM
  • Hi,

    although it's pretty late, since you asked and since I was searching for the same option to set this behavior as default, I wrote this JS (assuming the prevalence of jQuery) myself and share it with you guys:

    function changeQuicklaunchToOpenInNewTab(){
    	// get quicklaunch nodes, except the 'Edit Links' Node:
    	var quickLaunchLinks = jQuery("#sideNavBox ul.root li").not(".ms-listMenu-editLink").children("a");
    	// insert target='_blank' in each of them
    	for(var linkCounter = 0; linkCounter < quickLaunchLinks.length; linkCounter++){
    		jQuery(quickLaunchLinks[linkCounter]).attr("target","_blank");
    	}
    }

    You can insert it in an entire site, by adding this JS to the PageHead Delegate Control. Compare Kirk Evans Blog (https://blogs.msdn.microsoft.com/kaevans/2011/04/06/adding-jquery-to-every-page-in-sharepoint-with-delegate-controls/) for a how-to....

    regards

    Peter

    Wednesday, February 22, 2017 9:14 AM