»
EnglishFrenchVietnamese

Print - Radio Button Links - JavaScriptBank.com

Full version: jsB@nk » Snippet » Radio Button Links
URL: https://www.javascriptbank.com/radio-button-links.html

Radio Button Links © JavaScriptBank.comUse form radio buttons as hyperlinks or mail links. Quick and easy way to add a unique JavaScript navigation style to your site!

Full version: jsB@nk » Snippet » Radio Button Links
URL: https://www.javascriptbank.com/radio-button-links.html



JavaScript
<SCRIPT language=JavaScript><!--var thesites= new Array() thesites[0]="#";thesites[1]="#";thesites[2]="#";var gosite="";function geturl(thenum){gosite=thesites[thenum]; }function gothere() { if ((gosite==null) || (gosite==""))  alert("Please choose your destination");else  window.location=gosite;} //--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form><INPUT name=r1 onclick=geturl(0) type=radio>Link item #<BR><INPUT name=r1 onclick=geturl(1) type=radio>Link item #<BR><INPUT name=r1 onclick=geturl(2) type=radio>Link item # <BR><INPUT onclick=gothere() type=button value=GO> </FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->