Hi,
I'm trying to get this working but no luck so far..
I'm trying to check a few input fields on a form.
This is the code I have:
When name or message have no value, output should come
When url is filled, output should come.
I'm trying to get this working but no luck so far..
I'm trying to check a few input fields on a form.
This is the code I have:
Code:
<SCRIPT language="JavaScript">
function validate(form) {
if (form.name.value=="") {
alert("Vul je naam in");
return false;
} if (form.message.value=="") {
alert("Vul je bericht in");
return false;
} if (! (form.url.value=="")) {
alert("Geen URL ingevuld");
return false;
}
</SCRIPT>
When url is filled, output should come.