Results 1 to 10 of 10

Thread: i need i.e. javascript code to make a button and input box and then send the...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746

    i need i.e. javascript code to make a button and input box and then send the...

    I need a example in javascript to display a button and input box on a webpage and then have the internet explorer navigate to a set webpage plus the contents of the input box. for example the user types in the word hello in the input box and then clicks the button. then the internet explorer goes to url http://www.flamewavetech.com/hello

    how would i do this?

    all help is appreciated.

  2. #2
    Wait; JavaScript or VB?

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    i need javascript code
    Perhaps you should post in the javascript forum then...?

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    the code needs to be in javascript so i could put it in the html for a website.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    i get much quicker responses here than in other forums.

  6. #6
    I'll be nice and not harrass you about being in the wrong forum.
    Code:
    window.location = "http://www.flamewavetech.com/" + prompt("URL base?")
    I think.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    ye i tried this but when i clicked the button nothing happened.

    <html>
    <body>

    <SCRIPT>
    function submiturl(field) {
    window.location = "http://www.google.com" + FORM.label.value;
    }
    </SCRIPT>

    <FORM>
    <INPUT TYPE=text NAME="label" VALUE='' SIZE=20>
    <input type=button value='Search' onClick="submiturl"(document.this)">
    </FORM>

    </body>
    </html>

  8. #8
    onClick="submiturl"(document.this)">

    should be

    onClick="submiturl(document.this);">

  9. #9
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Originally posted by flamewavetech
    i get much quicker responses here than in other forums.
    that's no excuse now is it. Be patient

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    k i made the change u said and now it says a runtime error occured.

Posting Permissions

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



Click Here to Expand Forum to Full Width