Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<form target="_blank"> not working in iOS 7.0.3

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?

like image 303
planetes853 Avatar asked Mar 21 '23 17:03

planetes853


1 Answers

Popups are blocked by safari iOS by default.

Disable the block feature by settings -> Safari -> Block Pop-ups.

like image 149
Grant Zhu Avatar answered Apr 01 '23 19:04

Grant Zhu