Log in

View Full Version : Linking your way around the web with a help of a textBox!



rainarts
07-26-2008, 12:29 AM
The hard to find codes are the simple ones! For those of you who do not know! Heres how to do it


<html>
<head> <title>JumpBox</title>
<script type="text/javascript">
<!--Hiding
function surf()
{ var go = document.getElementById('txt').value;
window.document.location.href = go;
}// Done with hiding -->
</script></head> <body>

<p><form>
<input id="txt" type="text" value=" Enter URL Here" />&nbsp;<input id="button1" type="button" value="SURF!" onClick="surf()" /></form>
</body></html>

d-machine
07-26-2008, 01:49 AM
it is a simple and nice code, but why you are using all those open tags?
If you write it so write it in the corrcet way :)

rainarts
07-26-2008, 02:04 AM
Im just trying 2 make it simple and more readable. Im sure you are way more better than me! The bad thing about it is i forgot to put some end curly's o it! Have a nice day, bud...