Js form
How do I make an js form?
What is a js form? How do you make a js form? This script and codes were developed by Nugroho Indra Utomo on 17 October 2022, Monday.
Js form - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>js form</title>
</head>
<body> <html>
<head>
<title>Form Validation</title>
<script type="text/javascript">
<!--
function validateEmail()
{ var emailID = document.myForm.EMail.value; atpos = emailID.indexOf("@"); dotpos = emailID.lastIndexOf("."); if (atpos < 1 || ( dotpos - atpos < 2 )) { alert("Please enter correct email ID") document.myForm.EMail.focus() ; return false; } return( true );
}
function validate()
{ if( document.myForm.Name.value == ""||document.myForm.Name.value.length< 4 ) { alert( "Please provide your name correctly!" ); document.myForm.Name.focus() ; return false; } if( document.myForm.Age.value == "" || isNaN( document.myForm.Age.value ) || document.myForm.Age.value.length > 2 || document.myForm.Age.value.length < 2 ) { alert( "Please provide your Age correctly!" ); document.myForm.Age.focus() ; return false; } if( document.myForm.EMail.value == "" ) { alert( "Please provide your Email correctly!" ); document.myForm.EMail.focus() ; return false; }else{ // Put extra check for data format var ret = validateEmail(); if( ret == false ) { return false; } else { alert( "Success" ); } }
}
//-->
</script>
</head>
<body> <form name="myForm" onsubmit="return(validate());"> <table cellspacing="2" cellpadding="2" border="1"> <tr> <td align="right">Name</td> <td><input type="text" name="Name" /></td> </tr> <tr> <td align="right">Age</td> <td><input type="text" name="Age" /></td> </tr> <tr> <td align="right">EMail</td> <td><input type="text" name="EMail" /></td> </tr> <tr> <td align="right"></td> <td><input type="submit" value="Submit" /></td> </tr> </table> </form> </body> </html>
</body>
</html>
Developer | Nugroho Indra Utomo |
Username | indra_z85 |
Uploaded | October 17, 2022 |
Rating | 3 |
Size | 1,753 Kb |
Views | 22,264 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Template | 2,323 Kb |
Track2 | 10,828 Kb |
JQuery Dropdown Menu | 3,726 Kb |
Fancy box effect | 19,982 Kb |
Meiji | 8,051 Kb |
Task | 5,383 Kb |
Jquery effect | 2,139 Kb |
Club t | 8,583 Kb |
Responsive2 | 7,059 Kb |
Slider hover | 2,000 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
SVG Hover Animations | Kjbrum | 10,557 Kb |
Android Play Store With Slick Carousel | -J0hn- | 4,982 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
Contact | GanNichiHa | 2,514 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
RWD Conversion Practice | Jxqr97 | 2,743 Kb |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
Css or Czz.. | Judag | 4,111 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!