We would like to know how to simulate a mouse click on the Radio button.
<!-- w ww . j a v a2 s . co m-->
<html>
<body>
By pressing the "Simulate Click" button below, box 2 becomes checked
because a simulated mouse click is performed.
<form name="form1">
<input type="radio" name=button1 CHECKED>Box 1
<br>
<input type="radio" name=button2>Box 2
<br>
<input type="button" value="Simulate Click" onClick='document.form1.button2.click()'>
</form>
</body>
</html>
The code above is rendered as follows: