<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"></form>
<form name="form4" method="post" action=""><input type="radio"></form>
<form name="form5" method="post" action=""><input type="button"></form>
<form name="form6" method="post" action=""><input type="button"></form>
<input type="checkbox"></form>
<button onclick="alert(document.forms.length);">Number of forms in the page</button>
</body>
</html>
|