prevent users to continue to the action page using a JS method
<p>I have a form that when I click on button sumbit it redirects me to the action page, and I have a test on the fields using JavaScript, that I created a function for which returns true if all fields are filled or false if there is some field which is still empty. The problem is that the method that will prevent the user to continue to the action page if he clicked on the submit button when the JS function returns false?</p>
