The Example to find
out the number of forms in Html file :
<!DOCTYPE html>
<html>
<body>
<form name="Form1"></form>
<form name="Form2"></form>
<form></form>
<p>Number of forms:
<script>
document.write(document.forms.length);
</script></p>
</body>
</html>
o/p:
Number of forms: 3
No comments:
Post a Comment