Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Redirect | Q284 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.