I would like to know if it is safe enough to create via JavaScript control of empty fields. Here is my example in detail:
<script language='javascript'>
function validate () {
if(document.getElementById('title').value=="") {
alert("Enter a Title!");
return false;
}
if(document.getElementById('description').value=="") {
alert("Enter a Description!");
return false;
}
if(document.getElementById('image').value=="") {
alert("Inser an Image!");
return false;
}
alert("Success");
return true;
}
</script>