Javascript Essentials Part 5
Nov 2, 2008 Essentials, Javascript
Talk about form controls via Javascript. I have been hunting down js control over forms from the day I started web development. I love the control over programming and its essential too. Here in this javascript essentials part I will share with you some essential form controls.
- Accept Terms & Go
- Advanced Email Address Validator
- Auto Drop Down List – Select from drop down and list updates accordingly
- Auto Month DropDown with Date and Year
- Auto Phone Number Format
- Auto Tab
- Character Counter
- Check Un-check all from check boxes
- Check Un-check all 2
- Characters Disallow
- Preview Image While Uploading
- Submit Once
Accept Terms and Go
This script is about forcing user to click check box in order to accept terms or policy.

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Colin Pc -->
<!-- Web Site: http://www.insighteye.com/ -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}
// End -->
</script>
</head>
<body>
<form action="www.tecnonascita.com" method="POST" onsubmit="return checkCheckBox(this)">
I accept: <input type="checkbox" value="0" name="agree">
<input type="submit" value="Continue Order">
<input type="button" value="Exit" onclick="document.location.href='backpage.html';">
</form>
</body>
</html>Related Posts
Pages: 1 2 3 4 5 6 7 8 9 10 11
Tags: essential, Javascript, most wanted, scripts
Try Random Style!
Leave a Reply