Java Reference
In-Depth Information
//If the code's made it this far, everything's good
return true;
}
</script>
</head>
<body>
<form onsubmit=”return form_submit()”>
<table>
<tr>
<td class=”fieldname”>
Username:
</td>
<td>
<input type=”text” id=”username” />
</td>
</tr>
<tr>
<td class=”fieldname”>
Email:
</td>
<td>
<input type=”text” id=”email” />
</td>
</tr>
<tr>
<td class=”fieldname”>
Password:
</td>
<td>
<input type=”text” id=”password” />
</td>
</tr>
<tr>
<td class=”fieldname”>
Verify Password:
</td>
<td>
<input type=”text” id=”password2” />
</td>
</tr>
<tr>
<td colspan=”2” class=”submit”>
<input type=”submit” value=”Submit” />
</td>
</tr>
</table>
</form>
</body>
</html>
Beginning with the HTML: the links were removed, as well as the third column of the table. The key
difference in this new HTML is the onsubmit event handler in the opening <form> tag. Ideally, the
Search WWH ::




Custom Search