id 屬性設置或返回密碼域的 id。
passwordObject.id=id
下面的例子返回了該密碼域的 id:
<html>
<body>
<form id="form1">
<input type="password" id="password1" />
</form>
<p>The id of the password field is:
<script type="text/javascript">
x=document.getElementById('password1');
document.write(x.id
);
</script></p>
</body>
</html>
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網友會為你解答!! 點擊進入論壇
Powered by 365建站網 RSS地圖 HTML地圖
copyright © 2013-2024 版權所有 鄂ICP備17013400號