从页面视图webpart重定向 [英] Redirection from Page view webpart

查看:86
本文介绍了从页面视图webpart重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,


我有一个带有页面查看器webpart的SharePoint页面,当我点击页面的链接时,它会在同一区域中加载新页面重定向整个窗口。我想将完成的窗口重定向到网站网页。



问候,


Faizan。




关心,Syed Faizan你的Rehman,CBPM®,PRINCE2®,MCTS

解决方案

< blockquote>

Hi Faizan,


我们可以将下面的代码添加到页面查看器Web部件中使用的SharePoint页面。

< script type =" text / javascript" SRC =" HTTPS://code.jquery.com/jquery-1.12.4.min.js">< /脚本> 
< script type =" text / javascript">


(function(){


(" a") .click(function(){
window.parent.location.href =


Dear All,

I am having a SharePoint page with a Page viewer webpart, when I click the link of the page it loads the new page in the same area instead of redirecting the complete window. I want to redirect the completed window to a site webpage.

Regards,

Faizan.


Regards, Syed Faizan ur Rehman, CBPM®,PRINCE2®, MCTS

解决方案

Hi Faizan,

We can add the code below in to the SharePoint page which is used in the Page Viewer Web Part.

<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript">


(function(){


("a").click(function(){ window.parent.location.href=


这篇关于从页面视图webpart重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆