ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM forms ¼¯ºÏ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM forms ¼¯ºÏ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:1885 :: ::

¶¨ÒåÓëÓ÷¨

The forms collection returns a reference to all Form objects in the document.
forms ¼¯ºÏ¿ÉÓÃÀ´·µ»ØÎĵµÖÐËùÓÐForm¶ÔÏóµÄ²Î¿¼

Óï·¨

document.forms[]


¾ÙÀý

<html>

<body>
<form name="Form1"></form>
<form name="Form2"></form>
<form name="Form3"></form>
<script type="text/javascript">

document.write("This document contains: ")
document.write(document.forms.length + " forms.")
</script>
</body>
</html>


³¢ÊÔÓëÑÝʾ

Count the number of forms in a document
¼ÆËãÎĵµÖÐformµÄÊýÁ¿

Access an item in a collection
·ÃÎʼ¯ºÏÖеÄij¸öÏîÄ¿

ÆÀÂÛ (0) All