Writing Multiple into the same ID on HTML

ConanVF67

New Member
Someone know if after I displays an HTML page I can access a specific ID (getElementById), and change it a value several times?I want to present a client-side some string and change it several times according the progress of the program, but I can not, it writes to me only recently.For example:\[code\]<script type="text/javascript"> function foo(){ for(var i = 0; i<10000; i++){ document.getElementById('myTag').innerHTML = i; } }</script>\[/code\]In this case, I do not see the numbers run. I see only the last one.If I put alert inside the loop - the value is changed.
 
Back
Top