faqts : Computers : Programming : Languages : JavaScript : Forms : Radio buttons

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

57 of 121 people (47%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How to make a radio button act as a link?

Apr 9th, 2000 07:06
Martin Honnen, Krithika Natarajan,


You could let the onclick handler of the radio button set the location:

<INPUT TYPE="radio" NAME="aRadio" VALUE="http://javascript.faqts.com"
       ONCLICK="location.href = this.value"
>