Links in a SharePoint document library open in a new window

October 11th, 2006 | Categories: Personal

To make links from SharePoint lists, document libraries, etc. open in new window is usually easy with FrontPage 2003 or SharePoint Designer and inserting a Data View.

But this caused problems. In some cases when you’re including xslt data view you can have trouble saving site like template. What worked for me is to put a little script just before the tag, that changed the target window of links inside of document library. The script is based on WSS CSS recognition so you can use it also for other cases.

Below is the code for the script: