You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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.

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.