<form name="form1"> <input type="radio" value="some value" onclick="document.form1.action = 'action.php';" /> </form>