Text Box To New URL

[Total: 0    Average: 0/5]

This shows how to enter a new URL into a text box, and upon hitting return (or clicking outside the box after being in the box) it will take you to that page.

Body Code:

<form name=exf1>
<input name=t1 type=text onblur="doIt()" value="http://">
</form>
<script type=text/javascript>
function doIt() {
  document.location=document.exf1.t1.value;
}
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *