Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1548 How can I target another window when using radio buttons?

You are here: irt.org | FAQ | JavaScript | Form | Q1548 [ previous next ]

Try:

<script language="JavaScript"><!--
function goto_URL(url) {
   parent.FRAMENAME.location.href = url;
}
//--></script>

<form>
<input type="radio" name="r1" onClick="goto_URL('page1.html');"> page1</br>
<input type="radio" name="r1" onClick="goto_URL('page2.html');"> page2
</form>

©2018 Martin Webb