Way to stop the running of a Javascript web application when the focus is on other window
<p>Are there any way to stop the running of a Javascript web application when the focus is on other window?
For example, If I have AJAX executions in a application web, It'd very efficient  stop the running in that situation.</p>
