HTML DOM disabled 属性

定义和用法

form 属性可返回对包含该密码域的表单的引用。

若成功,该属性将返回一个表单对象。

语法

passwordObject.form

实例

下面的例子取得了该密码域所属的表单的 id:

<html>
<body>

<form id="form1">
<input type="password" id="password1" />
</form>

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

</body>
</html>
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南