我想在同一个标签页面中打开我的页面而不是新标签页面 [英] I want to open my page in same tab instead of new Tab
本文介绍了我想在同一个标签页面中打开我的页面而不是新标签页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨论坛,
我 创建了一个自定义 我的Sharepoint 2010应用程序中的Test1页面。我想重定向到新的Test2页面。但是新的Test2页面需要在当前选项卡中打开。
I created a custom Test1 page in my Sharepoint 2010 application.I want to redirect to new Test2 page.But the new Test2 page need to open in the current tab.
我尝试使用window.open和window。 location.href.But它在新标签页面中打开。
I tried using window.open and window.location.href.But it is opening in new Tab page.
你能不能建议我怎么做。
Could you please suggest me how to do this.
Rama
推荐答案
嗨拉玛。
据我所知,你应该使用
window.open("https://www.youraddress.com","_self")
或
window.location.replace("http://www.youraddress.com");
再见
这篇关于我想在同一个标签页面中打开我的页面而不是新标签页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文