SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Any ideas on how to make a link in a link webpart open in a new window? Thanks in Advance

share|improve this question

I assume you mean you have a list web part and it contains Link content type. You wish the Link content type to open in a new window. My only suggestion is that you use a custom XSLT for your List WebPart and render the xhtml link tag with a target attribute.

share|improve this answer

I'd go with jQuery. Get all links in the webpart and add the target attribute:

  // selector: get all links in the link webpart, check for unique (parent) class
  $('selector').attr('target', '_blank');
share|improve this answer

This blog post has the answer. I tried it out yesterday, and it works: Open Links List Links in New Window in SharePoint 2010

It does cause all of the links in the list to open in new windows, not just one, so hopefully that is the desired behavior.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.