Jump to content

How do I make it stop.


Dobakat

Recommended Posts

I have a code that works perfectly and in the handleResponse() I got this code:
[code] if(response) {
                // UPDATE ajaxTest content
                document.getElementById("monsterAttack").innerHTML = response;
setTimeout(monsterAttack,2000);

            } [/code]

But I want it to stop if it meets certain condition, like x<=0?

Link to comment
https://forums.phpfreaks.com/topic/31994-how-do-i-make-it-stop/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.