click() 方法用于在单选按钮上模拟一次鼠标点击:
radioObject.click()
下面的例子可在单选按钮上模拟一次鼠标点击:
<html>
<head>
<script type="text/javascript">
function clickRadio()
{
document.getElementById('radio1').click()
}
</script>
</head>
<body>
<form>
<input type="radio" id="radio1" />
<br />
<input type="button" onclick="clickRadio()"
value="Click radio button" />
</form>
</body>
</html>