什么是在新窗口中打开表单提交的正确方法现在已过时目标已被弃用 [英] What is the correct way to open a form submit in a new window now target is deprecated
问题描述
通常我会让我们
< form target =_ blank>
但仔细观察
http://www.w3schools.com/tags/tag_form.asp
我注意到目标属性已被弃用。
那么执行这种操作的正确的XHTML兼容方式是什么?
更新:谢谢,我很欣赏打开新窗口通常不是一个好主意,但在这种情况下,它是第三方连接到我们的网站谁想要这种效果,不幸的是,虽然我可以建议好设计给他们是否他们采取我的建议是另一回事:(解决方案
目标属性不被弃用(W3Schools是错误的而不是W3C)),它就不会出现在Strict中。
如果你想要一个窗体的新窗口,那么使用target属性(和一个Transitional doctype)。
然而,作者触发了新窗口被认为是有害的。
Normally I would us
<form target="_blank">
But looking through
http://www.w3schools.com/tags/tag_form.asp
I notice the target attribute is deprecated.
So what is the correct XHTML compliant way to perform such an action?
UPDATE: Thanks, I appreciate that opening new windows is not generally a good idea but in this case it's a third party linking to our site who wants this effect and unfortunately whilst I can suggest good design to them whether they take my advice is another matter :(
The target attribute is not deprecated (W3Schools is wrong again (and not the W3C)), it just doesn't appear in Strict.
If you want a new window from a form, then use the target attribute (and a Transitional doctype).
However, author triggered new windows are considered harmful.
这篇关于什么是在新窗口中打开表单提交的正确方法现在已过时目标已被弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!