1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Timing event infinite loop

Discussion in 'JavaScript and AJAX' started by msn90, Jul 17, 2009.

  1. msn90

    msn90 New Member

    hi guys,
    This is my Timing event infinite loop with stop button javascript program. it is very useful for you.

    program code

    <script type="text/javascript">
    var c=0;
    var t;
    function timedCount()
    function stopCount()
    <input type="button" value="Start count!" onClick="timedCount()">
    <input type="text" id="txt">
    <input type="button" value="Stop count!" onClick="stopCount()">
    Click on the "Start count!" button above to start the timer. The input field will count forever, starting at 0. Click on the "Stop count!" button to stop the counting.
  2. naimish

    naimish New Member

    Thanks for Sharing.
  3. Hreno

    Hreno New Member

    That's Javascript, not Java.

    This should go under Web Development.
  4. shabbir

    shabbir Administrator Staff Member


Share This Page