< form target =" _blank">不适用于iOS 7.0.3 [英] <form target="_blank"> not working in iOS 7.0.3

查看:101
本文介绍了< form target =" _blank">不适用于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.

这篇关于&lt; form target =&quot; _blank&quot;&gt;不适用于iOS 7.0.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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