HTML DOM form ÊôÐÔ

¶¨ÒåºÍÓ÷¨

form ÊôÐÔ¿É·µ»Ø¶Ô°üº¬¸ÃÖØÖð´Å¥µÄ±íµ¥µÄÒýÓá£

Èô³É¹¦£¬¸ÃÊôÐÔ·µ»ØÒ»¸ö±íµ¥¶ÔÏó¡£

Óï·¨

resetObject.form

ʵÀý

ÏÂÃæµÄÀý×Ó½«·µ»Ø¸ÃÖØÖð´Å¥ËùÊôµÄ±íµ¥µÄ id£º

<html>
<body>

<form id="form1">
<input type="reset" id="reset1" />
</form>

<p>The id of the form containing the reset button is: 
<script type="text/javascript">
x=document.getElementById('reset1');
document.write(x.form.id);
</script></p>

</body>
</html>
VUE