SharePoint Top Navigation Link: Open in New Window

There was a requirement is to add a link in intranet portal’s top navigation bar. Provided on clicking the link, it should open in new window, as the site link added was developed in a different platform & environment other than SharePoint.

If publishing feature is enabled, we can just go to: Site Actions >> Site Settings >> Navigation (Under Look and Feel), Add a New link with “Open link in new window” check-box selected. That’s all, We are done with opening top navigation link in new window!

sharepoint navigation hyperlink open new window

However, On the provided site we don’t have the publishing feature enabled. So, on the site settings page, we saw the “Top link bar” link instead of “Navigation”. Unfortunately, it doesn’t provide us an option to open links in a new window.
sharepoint top link new window

JavaScript! In URL field, just enter: javascript:void(‘https://your-link.aspx’,’_blank’)) 
open url new window sharepoint 2010
Even javascript:void(‘https://your-link.aspx’)) will work!

In my case, I had to enter:


The same trick can be used to open SharePoint quick launch links in a new window.

Follow this post to open SharePoint Link list links to new window: SharePoint Link list: Open in a New Window

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

4 thoughts on “SharePoint Top Navigation Link: Open in New Window

  • Does anyone know how for Sharepoint 2013??

    • Disable minimal download strategy and it seems to work: I’m surprised this was so hard to find online.

  • The javascript method doesn’t work in SharePoint 2013.

  • Perfect! Many others offered many solutions, but none as good and simple as this. Thanks.


Leave a Reply

Your email address will not be published. Required fields are marked *