checking form is submited or not in js code example Example: javascript do not submit form alert("hello world"); alert("it is a test");