Current location: Hot Scripts Forums » General Web Coding » JavaScript » Radio Button redirect


Radio Button redirect

Reply
  #1 (permalink)  
Old 11-02-06, 06:44 PM
jumbo1 jumbo1 is offline
Wannabe Coder
 
Join Date: May 2006
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
Radio Button redirect

Hi all

I guess this can be done using JavaScript:

when someone clicks on a radio button, he should be redirected to another page.

It's like making the radio button work as a hyperlink...

Thank you
Reply With Quote
  #2 (permalink)  
Old 11-02-06, 06:58 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Code:
<input type="radio" onclick="window.location='http://www.yourpage.com';" />
Reply With Quote
  #3 (permalink)  
Old 11-02-06, 07:37 PM
jumbo1 jumbo1 is offline
Wannabe Coder
 
Join Date: May 2006
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
thanks!! ur great
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
two radio button and one text area zoliky JavaScript 1 09-15-06 03:44 AM
SQL/Coldfusion radio button problem..... Clark_Kent Other Languages 1 07-19-06 04:43 PM
Form not updateding when I click radio button. Spreegem JavaScript 9 03-25-06 06:50 PM
How to replace radio button in a form with a picture? amazing PHP 2 11-17-05 08:17 AM
radio button selection TheLaughingBandit ASP 3 08-31-03 06:22 PM


All times are GMT -5. The time now is 11:20 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.