<html>
<script language="JavaScript">
function Oracle()
{
document.a.display.value="Oracle";
}
function VB()
{
document.a.display.value="Visual Basic";
}
function Java()
{
document.a.display.value="Java";
}
function Clear()
{
document.a.display.value="";
}
</script>
<head>
<title>Radio Button Click</title>
</head>
<body>
<center>
<form name = a align = center>
<font face=calibri>
<h1>Java Script Using radio buttons with onClick() Event</h1><br><br>
<input type=text name = display>
<br><br>
<input type=radio name=r1 value="Oracle" onclick="Oracle();">Oracle</input>
<input type=radio name=r1 onclick="VB();">Visual Basic</input>
<input type=radio name=r1 onclick="Java();">Java</input>
<br><br>
<input type=button value="Reset" onclick="Clear();">
</font>
</center>
</form>
</body>
</html>
<script language="JavaScript">
function Oracle()
{
document.a.display.value="Oracle";
}
function VB()
{
document.a.display.value="Visual Basic";
}
function Java()
{
document.a.display.value="Java";
}
function Clear()
{
document.a.display.value="";
}
</script>
<head>
<title>Radio Button Click</title>
</head>
<body>
<center>
<form name = a align = center>
<font face=calibri>
<h1>Java Script Using radio buttons with onClick() Event</h1><br><br>
<input type=text name = display>
<br><br>
<input type=radio name=r1 value="Oracle" onclick="Oracle();">Oracle</input>
<input type=radio name=r1 onclick="VB();">Visual Basic</input>
<input type=radio name=r1 onclick="Java();">Java</input>
<br><br>
<input type=button value="Reset" onclick="Clear();">
</font>
</center>
</form>
</body>
</html>