< form target =" _blank">不适用于iOS 7.0.3 [英] <form target="_blank"> not working in iOS 7.0.3
问题描述
以下代码完美适用于iOS 6.0.1
(使用iOS虚拟键盘,我在输入框上按下Go按钮)
< HTML>
< body>
< form action =http://stackoverflow.com/target =_ blank>
< input type =text/>
< / form>
< / body>
< / html>
但是当我在iOS 7.0.3上尝试完全相同的代码时,这根本不起作用。
按下iOS键盘上的Go按钮后没有响应。
如果我从表单标记中删除[target =_ blank], 。
我不知道这个问题的原因是什么。
有没有人有同样的问题?
默认情况下,Safari会阻止弹出窗口。 b
$ b
通过设置 - > Safari - >阻止弹出窗口来禁用块功能。
Following code works perfectly in iOS 6.0.1 (using iOS virtual keyboard, I pressed "Go" button on input box)
<html>
<body>
<form action="http://stackoverflow.com/" target="_blank">
<input type="text" />
</form>
</body>
</html>
But when I tried the exact same code on iOS 7.0.3, this does not work at all. No response after I press "Go" button on iOS keyboard.
If I remove [target="_blank"] from form tag, then it works properly.
I have no idea what is the reason for this problem. Does anyone have the same issue?
Popups are blocked by safari iOS by default.
Disable the block feature by settings -> Safari -> Block Pop-ups.
这篇关于< form target =" _blank">不适用于iOS 7.0.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!