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

Posted on Sep 30, 2013 12:20 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

The following script make the Safari be inoperable with input type="file"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.