I've never really done any Javascript so have come across what i think are some minor issues. I have a HTML form and some Javascript on a HTML file as below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My form</title>
<script type="text/javascript">
function ValidationEvent() {
var txtName = document.getElementById("txtName").value;
var txtemail = document.getElementById("txtemail").value;
var txtphone = document.getElementById("txtphone").value;
var txtemailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
if (txtName != '' && txtemail != '' && contact != '') {
if (txtemail. ...
Go to the complete details ...