Results 1 to 2 of 2

Thread: string and button question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    75

    string and button question

    Hi,

    i added a textbox and a button to my html file.
    the user is insert a string to the textbox.

    i want that when click on the button. the function take the string and for example use it for <a href = " www.THE STRING.com "> button </a>

    so i need put also variable

    how can i do it in JS???
    thanks a lot

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: string and button question

    document.location.href=document.getElementById('textbox1').value;

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