HTML DOM disabled ÊôÐÔ
¶¨ÒåºÍÓ÷¨
form ÊôÐÔ¿É·µ»Ø¶Ó°üº¬¸ÃÎı¾ÓòµÄ±íµ¥µÄÒýÓá£
Èô³É¹¦£¬¸ÃÊôÐÔ·µ»ØÒ»¸ö±íµ¥¶ÔÏó¡£
Óï·¨
textObject.form
ʵÀý
ÏÂÃæµÄÀý×ÓΪÎı¾ÓòËùÊôµÄ±íµ¥ÉèÖÃÁË id£º
<html>
<body>
<form id="form1">
<input type="text" id="text1" />
</form>
<p>The id of the form containing the text field is:
<script type="text/javascript">
x=document.getElementById('text1');
document.write(x.form.id
);
</script></p>
</body>
</html>