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 ?
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 ?
Comment