我编写了html程序,以便当我不输入该字段时,我想要警报消息..i尝试使用oninvalid函数。
<html>
<head>
<title>DIABETES RISK SCORE SYSTEM</title>
</head>
<body bgcolor="lightgreen" text="black" style="font-size:18pt;font-family:Garamond"><center>
<h2>DIABETES RISK SCORE SYSTEM</h2></center>
<form name=form1 >
<table name=tab cellspacing=30pt>
<tr>
<td align=left>
<h2>Enter your Name :</h2>
</td><td align=right><input type=text name=t1 size=18><br/><br/>
<a href="taketest.php" class="btn">BACK</a>
<a href="Gender.php" class="btn">NEXT</a>
</td>
</tr>
</table>
</form>
</body>
</html>