hai all , anyone knows the command used for exiting from a condition other than window.location...... waiting for the response from experts
To terminate a function, use return. To terminate a loop (for or while), use break. Examples: function DoIt(val) { var x = 0; while (true) { x++; if (x > 10) { break; } } if (!val) { return; } // This section will never be reached // if val contains a false value } Code (markup):