[thelist] javascript - how to quit script if condition is true && refesh page
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Mon Feb 7 12:10:27 CST 2005
The return statement should work; maybe we need to see more of your code.
The form.reset() method will reset the form without requiring a page refresh.
Cheers,
Peter
From: Brian Delaney brian.delaney at mccmh.net
I have a nested javascript that validates a form. What is the code to
sue that quits the script if a condition returns true?
I use return; but it just continues the next line of code.
Second - if the user selects and invalid choice I will alert them and
would like to refresh the page. What is the line to refesh the page
(reseting the form)?
Thanks
More information about the thelist
mailing list