How do I validate a search form with javascript? Say, a keyword is not entered and with Internet explorer I am able to show the alert box with the message and nothing is submitted if the input box did not have any keywords. But with Mozilla firefox, it does show the alert message, but it then goes to the index page i.e. it submits anyway. How do I stop this for Mozilla Firefox.
Search form validation (javascript) |
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
