如何在提交时关闭当前页面并重定向到新选项卡中的其他页面 [英] How to close current page on submit and redirect to other page in new tab

查看:83
本文介绍了如何在提交时关闭当前页面并重定向到新选项卡中的其他页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好



如何在提交时关闭当前页面并重定向到新标签页中的其他页面?



问候

Tahir

Hi

How to close current page on submit and redirect to other page in new tab ?

Regards
Tahir

推荐答案

请看我的评论问题。这是我强烈建议你做的。



对于标签,看起来浏览器决定天气新窗口应该是一个单独的窗口或标签页根据自己的规则,基于 window.open 的参数。 W3标准没有指定此详细信息,因此您无法通过浏览器独立控制此功能。通常,建议将其留给用户,用户最终可以决定在新窗口,选项卡或同一窗口中加载哪些内容。对于大多数用户而言,在未经他们同意的情况下添加新窗口或标签会非常烦人用户应该决定;并且您的Web应用程序不应该依赖于激活链接时发生的任何假设。



-SA
Please see my comment the question. This is what I would strongly recommend you to do.

As to the "tab", it looks like the browser "decides" weather a new window should be a separate window or a tab page by its own rule, based on the parameters of window.open. The W3 standards don't specify this detail, so you cannot have universal browser-independent control over this feature. Generally, it is recommended to leave it to the user, who can ultimately decide what content should be loaded on a new window, a tab, or in the same window. To most users, adding new windows or tabs without their consent is quite irritating. The users should decide; and your Web application should not rely on any assumptions on what happens on the activation of the link.

—SA


这篇关于如何在提交时关闭当前页面并重定向到新选项卡中的其他页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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