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