how to stop further execution in javascript code example
Example: in javascipt how to stop further page processing
if(someEventHappened) return; // Will prevent subsequent code from being executed
alert("This alert will never be shown.");
if(someEventHappened) return; // Will prevent subsequent code from being executed
alert("This alert will never be shown.");