Java Script / jQuery, how to go do different pages and trigger clicks at different interval times?
<p>i have 3 pages with 3 buttons:</p>

<p>index1.php <code>&lt;input type="submit" value="button1" id="submit_btn"/&gt;</code></p>

<p>index2.php <code>&lt;input type="submit" value="button2" id="submit_btn"/&gt;</code></p>

<p>index3.php <code>&lt;input type="submit" value="button3" id="submit_btn"/&gt;</code></p>

<p>what i want is to create a script that goes to <code>index1</code> and clicks on the <code>button1</code> then waits 10 min and goes to <code>index2.php</code> and clicks to <code>button2</code>.</p>

<p>i could use <code>$('#button1').click();</code> and the <code>setTimeout(function(){..}</code> function, but how do i handle errors like if the page is not loaded, or if there is a server error and the page needs to be refreshed...</p>

<p>thanks</p>
