*Validating a Form in JavaScript.1st Step:Select JavaScript in Menu.2nd Step:Select the Object : (Form) 3rd Step:Select the Event: (OnSubmit) and click on Edit4th Step:Enter the JavaScript CodeFor instance: I am stating a condition. If the register button is clicked and the required fields (cod_vend, nome_vend) are empty, it will show the JavaScriptalert message.if(document.F1.cod_vend.value=="")//if the field is empty.(F1) -> Name of the Form, Default of the Scriptcase { alert("Enter…