Results 1 to 3 of 3

Thread: Linking your way around the web with a help of a textBox!

  1. #1
    Join Date
    Jul 2008
    Posts
    40
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Talking Linking your way around the web with a help of a textBox!

    The hard to find codes are the simple ones! For those of you who do not know! Heres how to do it

    Code:
    <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>
    Last edited by rainarts; 07-26-2008 at 10:49 AM. Reason: I did forgot some curly braces!

  2. #2
    Join Date
    Nov 2007
    Posts
    151
    Thanks
    67
    Thanked 0 Times in 0 Posts

    Default

    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

  3. #3
    Join Date
    Jul 2008
    Posts
    40
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Sorry my bad!

    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...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •