for (int i = 1; i <= cnt; i++) { divMsg.InnerHtml = "Error:" +i+ " is complete."; }
$("#loader").show(); todo(); // your time-taking task $("#loader").hide();
<div id="loader"></div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)