The most viewed posts

Registry Reviver

Web Development Services

How to clean up Windows Computer

About Desktop Icons in Windows Computer

Driver Booster

How to make a computer secure and run faster

CCleaner

Myanmar font and keyboard for Windows

Contact Me

Advanced System Care

The most viewed items

Dell Inspiron 5559

Desktop Hard Disk

HP ProBook 430

Laptop RAM

SONY Playstation Portable

External Hard Disk

Laptop

ZilaStar ICT Jun 18 2022, 09:36:53
Category : JavaScript Tutorials

JS Form Validation

<!DOCTYPE html>
<html>
<head>
<title>JavaScript Code Testing</title>
</head>
<body>
<script>
function formValidate(){
var x = document.forms["myForm"]["fname"].value;
if(x == ""){
alert("Must fill out in the form");
return false;
}
}
</script>
</body>
<form action = "formvalidate1.html" method = "POST" onsubmit = "return formValidate()" name = "myForm">
<input type = "text" name = "fname">
<input type = "submit" value = "Submit">
</form>
</html>

  • Comments:

    No comment to show.

    To Contact
    Available Services
    Terms and Conditions