snowboardr
Programmer
I have a bunch of "main" javascript functions i want to run this function:
If they press "cancel" i would like it to stop running the "main" function also... so then it doesn't switch pages...
Jason
Army : Combat Engineer : 21B
Code:
function MAIN_FUNCTION() {
DiscardMessage(); // if okay... continue else END HERE
}
function DiscardMessage(){
if (confirm('Discard this message?')) {
} else {
}
}
If they press "cancel" i would like it to stop running the "main" function also... so then it doesn't switch pages...
Jason
Army : Combat Engineer : 21B