<body>
<form id="register">
First Name: <input type="text" id="abc" name="Firstname" size="50" onkeypress="return AvoidSpace(event)"><br><br>
Last Name: <input type="text" id="def" name="Lastname" size="50" onkeypress="return AvoidSpace(event)"><br><br>
Address: <input type="text" id="ghi" name="Address" size="52"><br><br>
City: <input type="text" id="jkl" name="City" size="56" onkeypress="return NumChar(event)"><br><br>
State: <input type="text" id="mno" name="State" size="55" onkeypress="return NumChar(event)"><br><br>
Pincode: <input type="text" id="pqr" name="Zipcode" maxlength="6" onkeypress="return ExceptNumber(event)"><br><br>
Contact No: +91- <input type="text" id="stu" name="Phoneno" maxlength="10" onkeypress="return ExceptNumber(event)"><br><br>
Email Id: <input type="email" id="vwx" name="Email" size="50" required><br><br>
<input type="button" value="Submit" onclick="subFun()">
<input type="button" value="Reset" onclick="clearFunction()">
</form>
</body>
我开始知道,如果我们在表单验证中使用更多事件,则表单加载&amp;提交将花费更多时间,并且基于上述程序,输入标记将等待,除非并且直到事件必须被解雇。有点混淆这个话题。如果我在表单中使用更多事件,实际会发生什么。这是不断使用事件的正确方法吗?