I have an HTML search form with a JavaScript alert but when there is an alert, the form is still submitted. How can I make it stay on the HTML page and not actually submit the form?<br><br>Here is the alert:<br><br>function OnSubmitKw(form){<br>if (form.Keywords.value=="" && form.searchtype.value=="Keyword"{<br> alert("You did not enter any Keywords! Please try again."}<br>}