HTML DOM type ÊôÐÔ
¶¨ÒåºÍÓ÷¨
type ÊôÐÔ¿ÉÉèÖÃ±íµ¥ÔªËØµÄÀàÐÍ¡£¶ÔÓÚÃÜÂëÓò£¬¸ÃÊôÐÔ×ÜÊÇ "password"¡£
Óï·¨
passwordObject.type
ʵÀý
ÏÂÃæµÄÀý×Ó·µ»ØÁ˸ÃÃÜÂëÓòµÄ±íµ¥ÔªËØÀàÐÍ£º
<html>
<body>
<form>
<input type="password" id="password1" />
</form>
<script type="text/javascript">
x=document.getElementById("password1");
document.write("Form element type is: ");
document.write(x.type
);
</script>
</body>
</html>