<html>
<body>
<form name="form1" method="post" action=""><textarea></textarea></form>
<form name="form2" method="post" action=""><p><input type="text"></p></form>
<form name="form3" method="post" action=""><input type="radio">
<input type="checkbox"></form>
<button onclick="alert(document.forms.length);">Number of forms in the page</button>
</body>
</html>
|