w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM id ÊôÐÔ
The id property sets or returns the id of the form.
idÊôÐÔ¿ÉÓÃÀ´ÉèÖûò·µ»Ø±íµ¥µÄid
formObject.id=id |
The following example shows two methods on how to return the id of the <form> element:
ÏÂÃæµÄ¾ÙÀý½«Ê¹ÓÃÁ½ÖÖ·½·¨À´·µ»Ø<form>ÔªËØµÄid:
<html> <form id="myForm"> <script type="text/javascript"> </body> |
Get the id from a <form> element
µÃµ½<form>ÔªËØµÄid
ÆÀÂÛ (0)
All