onclick event handler for radio button

Portend

Member
Sep 4, 2000
76
0
0
made a simple script to show a link if condition on radio button is true. The problem is it is not working. any suggestions?
--------------------
<head>
<script>
var stringshow = &quot;&quot;

function showlink()
{
if (document.PForm.Scheduler[0].checked )
stringshow = &quot;jsdfhsk&quot;
}
</script>
</head>
<body onload=&quot;showlink()&quot;>

<form action=&quot;test.html&quot; name=&quot;PForm&quot;>
<input type=&quot;radio&quot; name=&quot;Scheduler&quot; value=&quot;yes&quot; ><br>

<input type=&quot;radio&quot; name=&quot;Scheduler&quot; value=&quot;no&quot; checked>
</form><br>

<script>document.write(stringshow)</script>
</body>
-----------------------------
thanks