|
-
Jul 14th, 2005, 08:23 AM
#1
Thread Starter
Lively Member
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
-
Jul 15th, 2005, 01:45 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|