Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Open Links in New Window Web Part

  Asked By: Marcella    Date: Nov 14    Category: Sharepoint    Views: 2586

Someone asked me to create a Web Part that opens ALL the links on a page
in a new window. While I'm not fond of opening new browser windows, some
people love it.

So, I enhanced the request a little and wrote a script to alter any link
on the page that is:
1. Not the default.aspx page
2. Not a SharePoint admin page (in _layouts folder)
3. Only a link that begins with "http" (no JavaScript links)

My resulting Web Part (CEWP, of course) is attached and should work on
any Web Part Page in SharePoint. You may need to alter it for your given
situation but it should be a good starting place.



2 Answers Found

Answer #1    Answered By: Damon Garner     Answered On: Nov 14

You should call that the "Uh oh, the boss is coming so I better look busy" webpart.

Answer #2    Answered By: Alexis Ellis     Answered On: Nov 14

Stsadm -o enumsites -url http://servername

Didn't find what you were looking for? Find more on Open Links in New Window Web Part Or get search suggestion and latest updates.