When I try open file dialog (input type=file) my JS code stopped executing in IE. Could you explain me why it happend? And how I can fix it?
JS:
function Count() {
num++;
document.timerform.clock.value = num;
down = setTimeout("Count()", 1000);
}
function timeIt() {
num=0;
Count();
}
HTML:
<BODY OnLoad="timeIt()">
<center>
<form name="timerform">
<input type="text" name="clock" size="7" value="1:00"><p>
<input type="file" name="datafile" size="40">
</form>
</center>
version vith iframe:
<BODY OnLoad="timeIt()">
<center>
<form name="timerform">
<input type="text" name="clock" size="7" value="1:00"><p>
<iframe src="blank.html" height="200" width="500">My frame.</iframe>
</form>
</center>
blank.html:
<input type="file" name="datafile" size="40">