在新窗口中打开自定义网站操作链接 (SharePoint)

发布于 2024-08-01 15:36:58 字数 196 浏览 1 评论 0原文

在 SharePoint 中使用自定义操作(对于“网站操作”菜单)时,如何才能使链接在新窗口中打开?

我尝试了一种使用 jQuery 的方法,该方法通过 .live() 附加一个悬停事件,以用 window.open 调用替换 window.location - 然而这被证明很麻烦,因为它拒绝在 IE6 中工作(其中很大一部分)我们的用户仍在使用...)。

When using custom actions in SharePoint (for the Site Actions menu) how can I make it so that the links will open up in a new window?

I have tried an approach using jQuery that would attach a hover event via .live() to replace the window.location with a window.open call -- however this proved to be troublesome as it refused to work in IE6 (which a large portion of our users are still using...).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尛丟丟 2024-08-08 15:36:58

它不可能开箱即用。 但这可以通过一点小技巧来完成。 请参阅这些链接

MSDN 问题

博客文章

Its is not possible out of box. But it can be done using little hack. Refer to these links

MSDN Question

Blog Post

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文