formulário-submeter

How to validate an input?

I have a form that sends the values entered in the input to another page. I want to make a validation between the inputs, if ... ipt: if(document.getElementById("time_debut").value > document.getElementById("time_fin").value){ alert("Maior"); }