이 기사에서는 HTML의 DOM에서 Document Object Forms Collection의 사용에 대해 설명합니다. 참조를 위해 공유하십시오. 특정 분석은 다음과 같습니다.
Forms Collection은 문서의 모든 양식 개체에 대한 참조를 반환합니다.
문법:
다음과 같이 코드를 복사하십시오. document.forms []
예:
다음과 같이 코드를 복사하십시오. <html>
<body>
<form name = "form1"> </form>
<form name = "form2"> </form>
<form name = "form3"> </form>
<script type = "text/javaScript">
document.write ( "이 문서는 다음과 같습니다.")
document.write (document.forms.length + "forms.")
</스크립트>
</body>
</html>
이 기사가 모든 사람의 JavaScript 프로그래밍에 도움이되기를 바랍니다.