Welcome To Paki Tigers Community


 
HomeFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Timing event in an infinite loop

Go down 
AuthorMessage
Admin
Admin


Posts : 102
Join date : 2008-09-25
Age : 27
Location : Pakistan

PostSubject: Timing event in an infinite loop   Sat Oct 04, 2008 6:30 am

Hello Everybody

Timing Event with infinite loop


<html>
<head>
<script type="text/javascript">
var c=0;
var t;
function timedCount()
{
document.getElementById('txt').value=c;
c=c+1;
t=setTimeout("timedCount()",1000);
}
</script>
</head>

<body>
<form>
<input type="button" value="Start count!" onClick="timedCount()">
<input type="text" id="txt">
</form>
<p>Click on the button above. The input field will count for ever, starting at 0.</p>
</body>

</html>
Back to top Go down
View user profile http://paki-tigers.forumotion.com
 
Timing event in an infinite loop
Back to top 
Page 1 of 1
 Similar topics
-
» Event is not fired with IDE
» How Click on Dynamic Objects at Dynamic Positions in Selenium using for loop
» [SOLVED] Windows 10 TP 10041 installation Error *loop*
» Pre-Retcon Beyonder exist on a Infinite Dimensional Level
» Loop Recorder Implant

Permissions in this forum:You cannot reply to topics in this forum
Welcome To Paki Tigers Community :: Programming / Designing / Source Code :: Html, Java Script & Css-
Jump to: