The following script make the Safari be inoperable with input type="file"
When we show the web page with the following script make iOS 6.1.3 Safari and Chrome be inoperable.
<script> function vp(){ alert("mof-mof"); // <- freeze here ! } </script> <form> <input class="btn" type="button" onclick="uf1.click();" value="test"> <input name="uf1" accept="image/*" onchange="vp();" type="file"> </form> |
But following code has no problem.
<script> function vp(){ alert("mof-mof"); // <- No problem. } </script> <form> <input class="btn" type="button" onclick="uf1.click();" value="test"> <input name="uf1" onclick="this.value='test';" onchange="vp();"></form> |
new iPad (iPad3)-OTHER, iOS 6.1.3