Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script type="text/javascript">
function setFormAction(frm) {
if (frm.elements["myRadio"][0].checked) {
frm.action = frm.elements["myRadio"][0].value;
}
else if (frm.elements["myRadio"][1].checked) {
frm.action = frm.elements["myRadio"][1].value;
}
else {
frm.action = "";
}
}
function whatIsMyAction(frm) {
alert("The form action was set to (" + frm.action + ")");
return false;
}
</script>
<form onsubmit="return whatIsMyAction(this)">
<input type="radio" name="myRadio" value="page1.asp" /> page 1 <br />
<input type="radio" name="myRadio" value="page2.asp" /> page 2 <br />
<input type="submit" onclick="setFormAction(this.form)" />
</form>