Imagetotext

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

2:39 €
web programming ...
I...
}
if(document.myForm.Country.value = "-1")
}
alert("Please Provide Your Country Name"); return false;
return true;
function validateEmail()
var emailID=document.myForm.Email.value; atpos = emailID.indexOf("@");
dotpos = emailID.lastIndexOf(".");
if(atpos < 1 || (dotpos - atpos <2))
f
alert("Please Enter Correct Email ID");
document.myForm.Email.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<form name="myForm" onsubmit="return(validate());"> <table cellspacing="2"
cellpadding="2" border="1">
<tr>
<td>Name</td>
<td><input type="text" name="Name" /></td>
</tr>
></td>
<tr>
Vo
LIEB l
<td>Email ID</td>
<td><input type="text" name="Email" onchange = "validateEmail();"/></td>
</tr>
<tr>
<td>Zip Code</td>
<td><input type="text" name="Zip" /></td>
</tr>
<tr>
<td>Country</td>
<td><select name="Country">
<option value="-1" selected> [Choose Yours]</option>
<option value="1">INDIA</option>
<option value="2">USA</option>
<option value="3">Srilanka</option> </select>
</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Submit" </tr>
</table>
</form>
</body>
</html>
Program3: Develop a HTML Form, which accepts any Mathematical expression. Write
JavaScript code to Evaluates the expression and Displays the result.
4G+

You might also like