topical media & game development
basic-web-html-12-exercise1.htm / htm
<html>
<head>
<title>Example 1</title>
<style type="text/css">
.formTitle {vertical-align:top; text-align:right;}
</style>
<script type="text/JavaScript">
function validate(form) {
var returnValue = true
var name=form.txtName.value
if (name=="")
{
returnValue = false;
alert("You must enter a name")
document.frmCompetition.txtName.focus();
}
var email=form.txtEmail.value
var rxEmail = /^\w(\.?[\w-])*@\w(\.?[\w-])*\.[a-z]{2,6}(\.[a-z]{2})?
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.