
I am running a loop and wants to abort it after a specific time. How is it possible using JavaScript Abort function..?

Using JavaScript we can abort function or loop. See the the code below ..
function javascript_abort()
{
throw new Error('This is not an error. This is just to abort javascript');
}
// assume that you have this code inside a nested function.
for(var i=0;i<10;i++)
{
if(i==5)javascript_abort();
alert(i);
}
//so at any place it will stop the execution.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
