laxman Posted September 3, 2009 Posted September 3, 2009 hi all, i am developing an online application using asp.net 2.0 with C# in this i have to show user how much time left to fill the form i am able give using below java script but when ever page refreshes it is starting from the first can you suggest me how to maintain time left even if page got refreshes also please check the below code or any alternative <script type="text/javascript"> setInterval ( "doSomething()", 1000 ); function doSomething ( ) { var att=document.getElementById("Txtpno").value; att--; if(att==0) { window.confirm("[laxman]"); } else { document.getElementById("Txtrnk").value="Time left:"+att; document.getElementById("Txtpno").value=att; } } Quote
laxman Posted September 6, 2009 Author Posted September 6, 2009 Can Any one suggest me is there any alternative or some solution to this Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.