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>