Open the document in a new window on the SPS page

Source: Internet
Author: User

A friend asked me this question: can the connection in SPs be opened in a new window? That is to say, all links to the SharePoint website will be opened in this window, but sometimes we do need to open a link in a new window, the default webpart of SPS does not have the option to open in a new window. What should I do? I used a simple method to implement this function using the existing webpart.

Deploy a "Content Editor Web Part" on the page to open the link in a new window. Then, modify the attributes of the webpart and click "Source Editor ", on the displayed editing page, enter the following text "<base target =" _ blank "> ". Try again, as long as all links under it are opened in the new webpart. However, you also need to add a "Content Editor Web Part" at the end. Then, enter the following text "<base target =" _ Self ">" in the source editor ". Why? If you don't change it back at the end, you will find that errors are often reported when you use IE to edit and design this page. This is because many editing commands are Javascript and cannot be opened in a new window. Therefore, you must set the page to open at the end of the window.

Expand. If you don't want to use the new window feature throughout the page, you just need to put a pair of such Web Components in front and back of the corresponding web components.

 

Some friends want to open the link on the navigation bar (the top one) in a new window. Although I have not tried it in SPS and WSS, I used this in STS before. I used FrontPage to open this page, then, locate the appropriate location and add <base target = "_ blankf"> and <base target = "_ Self">

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.