var ss=document.all("counter").children(0).innerText; var slength=ss.length; var temp; var count=""; var s; for( var i=0;i