![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
user input accepted via a input in the form. this value needs to be appended to the current url (explained below) ie say present url is www.xyz.com and the user is asked to enter his string and say he enters "john" a hyper link needs to be created by appending this string, like a href="http://www.xyz.com/john"></a (the string "john" was the one input by the user in the input field) (where www.xyz.com is the current url) it is easy to extract the value of the input field entered by the user like document.forms[0].name1.value how to use this value and append to the current url and then create a new hyperlink with this appended string ? |
#3
| |||
| |||
|
|
This may help:- http://artlung.com/lab/scripting/change_all_links/ this is to change all links, but if you know the position of th elink on your page you can just use it's 'i' number. Stu "brian" <brian_dell3 (AT) yahoo (DOT) com> wrote in message news:af10786c.0310161807.64ed05f6 (AT) posting (DOT) google.com... user input accepted via a input in the form. this value needs to be appended to the current url (explained below) ie say present url is www.xyz.com and the user is asked to enter his string and say he enters "john" a hyper link needs to be created by appending this string, like a href="http://www.xyz.com/john"></a (the string "john" was the one input by the user in the input field) (where www.xyz.com is the current url) it is easy to extract the value of the input field entered by the user like document.forms[0].name1.value how to use this value and append to the current url and then create a new hyperlink with this appended string ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |