HTML DOM id ÊôÐÔ
¶¨ÒåºÍÓ÷¨
name ÊôÐÔ¿ÉÉèÖûò·µ»Øµ¥Ñ¡°´Å¥µÄÃû³Æ¡£
Óï·¨
radioObject.name=name
ʵÀý
ÏÂÃæµÄÀý×Ó¿ÉÏÔʾ³ö¸Ãµ¥Ñ¡°´Å¥µÄÃû³Æ£º
<html>
<body>
<form>
<input type="radio" id="radio1" name="radio1" />
</form>
<p>The name of the radio button is:
<script type="text/javascript">
x=document.getElementById('radio1');
document.write(x.name
);
</script></p>
</body>
</html>