How to Abort Javascript Execution
In General we may have to work on Javascript abort where in we can abort using below steps . 1. by throwing error on browser console which will abnormally terminate the JS flow . function abortFlow(){ throw new Error ( "Oops because of error aborting the flow" ); }