Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1543 How can I allow a user, after having checked one of radio buttons, and clicked on an image to move onto a dedicated page depending on chosen radio button?

irt.org | Knowledge Base | JavaScript | Link | Q1543 [ previous next ]

Q1543 How can I allow a user, after having checked one of radio buttons, and clicked on an image to move onto a dedicated page depending on chosen radio button?

Try:

<form>
<input type="radio" name="r1" onClick="window.nextPage='page1.html'"> 1
<input type="radio" name="r1" onClick="window.nextPage='page2.html'"> 2
<input type="radio" name="r1" onClick="window.nextPage='page3.html'"> 3
</form>

<a href="javascript:;" 
onClick="if (window.nextPage)
   window.location.href=window.nextPage; 
return false"><img src="next.gif" border="0" alt="next"></a>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.