@fredmvMar 12.2004 — #[i]Originally posted by funkykangaroo [/i]
[B]Thanks! That works, but the href is outside the form, and there are 3 other forms on the page... [/B][/QUOTE]No problem. The links can be anywhere, and the JavaScript could be easily modified to write to different (or multiple) elements. It doesn't only have to be the first one. Could you perhaps elaborate on what your requirements are?
I am dynamically creating a website link on a page. I'd like to be able to simply click on this link and have it populate into a certain text field in form "a"
@fredmvMar 12.2004 — #The statement:document.forms[0][0].value += s;Changes to:document.forms['a']['foo'].value += s; The string "foo" then changes to whatever the [font=courier]name[/font] of the form element is (of course, you could also use array notation or other such methods).
@fredmvMar 12.2004 — #[i]Originally posted by funkykangaroo [/i]
[B]What if I want the href link to just say "paste"[/B][/QUOTE]You would simply change the string contained within the opening and closing [font=courier]<a>[/font] tags which however, would seem to contradict your original purpose: to make it so the text within the link is written to a form element.[i]Originally posted by funkykangaroo [/i]
[B]When you click on paste, it would populate the field with the correct URL[/B][/QUOTE]What "correct URL"? More detail needed.