Why setTimeOut not working?
It's good it's not working, as you'll end up with an infinite loop of a function that calls itself within it...
I see two issues with it, beyond that:
- The first parameter needs to be a string, not a function. In your case it would be:
"processPage()"
- You should always use a variable to handle the return object of setTimeOut. If you don't do that it often doesn't work, even if you don't use that variable for anything later on. So the complete line should be:
var to1 = app.setTimeOut("processPage()", 1000);
But again, this will lead to an infinite loop. What exactly are you trying to achieve with this code?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.