为什么RadioButton变量的checked属性在IE中不显示
bodan 2006-05-09 02:43:34 如题
<SCRIPT>
function f1()
{
var NewRadio;
NewRadio=document.createElement('input');
var oTextNode = document.createTextNode("New Text");
NewRadio.type='radio';
NewRadio.checked='checked';//这里该怎么写?
document.body.appendChild(NewRadio);
document.body.appendChild(oTextNode);
}
</SCRIPT>
<input type="button" onclick=f1()>