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

Q284 How can I redirect the browser using a text box?

You are here: irt.org | FAQ | JavaScript | Redirect | Q284 [ previous next ]

Using either the onSumbit, onChange or onClick event handlers:

<form name="myform" onSubmit="location.href=document.myform.mytext.value">
<input type="text" name="mytext" onChange="location.href=document.myform.mytext.value">
<input type="button" onClick="location.href=document.myform.mytext.value">
</form>

Feedback on 'Q284 How can I redirect the browser using a text box?'

©2018 Martin Webb