|
Here you Go:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" language="javascript">
function formVal(){
str=document.getElementById('box').value;
checkp=str.charAt(str.length-1);
if(checkp=="."){
alert("No Period There Please");
}
}
</script>
<title></title>
</head>
<body>
<form><input type="text" id="box"> <input type="button" value=
"Submit" onclick="formVal();"></form>
</body>
</html>
Basscyst
|