I'm working on IExplorer:
The input text (having id = "it") does not refresh at all, neither at large intervals (in the for loop).
But the window.status is refreshed and shows correctly the counter.
[HTML]
<html>
<head>
<title>Refres h test</title>
<script language="JavaS cript">
function test1(){
var str = "";
var it = document.getEle mentById("it");
var max = it.value;
document.body.s tyle.cursor = 'wait';
for(var i=max;i>0;i--){
str += "To apply the Internet Explorer Enhanced Security Configuration to both administrators and all other users, click Next" ;
if (i % 500 == 0){//refresh on every 500 iterations
it.value = i;
window.status = i;
}
}
d1 = new Date();
it.value = 0;
document.body.s tyle.cursor = "default";
}
</script>
</head>
<body>
<input type="button" value="Start loop" onclick="test1( )">
<input type="text" id="it" value="5000">
</table>
</body>
</html>
[/HTML]
Is there any trick to overcome this problem?
The input text (having id = "it") does not refresh at all, neither at large intervals (in the for loop).
But the window.status is refreshed and shows correctly the counter.
[HTML]
<html>
<head>
<title>Refres h test</title>
<script language="JavaS cript">
function test1(){
var str = "";
var it = document.getEle mentById("it");
var max = it.value;
document.body.s tyle.cursor = 'wait';
for(var i=max;i>0;i--){
str += "To apply the Internet Explorer Enhanced Security Configuration to both administrators and all other users, click Next" ;
if (i % 500 == 0){//refresh on every 500 iterations
it.value = i;
window.status = i;
}
}
d1 = new Date();
it.value = 0;
document.body.s tyle.cursor = "default";
}
</script>
</head>
<body>
<input type="button" value="Start loop" onclick="test1( )">
<input type="text" id="it" value="5000">
</table>
</body>
</html>
[/HTML]
Is there any trick to overcome this problem?
Comment