UK['f?:mz] US['f?:mz]

n. Way; shape (plural form of noun); (blank) form (paper); composition

v. form, constitute, produce (the third person singular of form); be; (make) take shape; form (friendship)

javascript forms attribute syntax

Function: Returns references to all Form objects in the document.

Syntax: document.forms[]

javascript forms attribute example

<html>
<body>

<form name="Form1"></form>
<form name="Form2"></form>
<form name="Form3"></form>

<script type="text/javascript">
document.write("文檔包含: " + document.forms.length + " 個(gè)表單。")
</script>

</body>
</html>

Run instance ?

Click the "Run instance" button to view the online instance