|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a form and have two text boxes. there is also a link in the form. the href of the link is determined by the entry in the first text box.i will have to append that value as a parameter in the link. for creating that link i used the document.write method the value of this parameter is the entry in the first text box.i used like this
document.write("<a href=Url?parameter="+Form.Text1.value); the problem is that the value 0f the text box at the load time is passed as parameter. it will not take the value entered by the user. How can i solve it? Please help |
|
#2
|
|||
|
|||
|
This should work:
<SCRIPT> var destHREF="http://home.netscape.com/" </SCRIPT> <FORM> <INPUT TYPE="TEXT" onChange="destHREF='url?parameter='+this.value;"> <A HREF="" onClick="this.href=destHREF"> <B>Click me</B> </A> </FORM> ------------------ Good luck, Bas ------------------ E-mail me at: b.vandermeijden@pecoma.nl |
|
#3
|
|||
|
|||
|
Thank u MeijdenB. It helped me
elzabeth |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > How to create a Dynamic Link |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|