Click to See Complete Forum and Search --> : Exit Statement


vmahalin
04-04-2003, 11:15 AM
How to exit from a javascript event.....an event like

<Script For="ccc" Event="something();" language=Javascript>

if (something fails)
Exit ----> How to exit the event from here

<Script>

gil davis
04-04-2003, 11:47 AM
Perhaps you are looking for break;although you should be able to structure your "if" statement in such a way that the end result is basically a no-op and no exit is required.

Nedals
04-04-2003, 02:04 PM
You could also use..
return, return true or return false; depending on what you are doing.