I need to know how i can make an hyperlink inside an iframe change the value of a textbox in a form on the parent document containing that iframe. I have no problem with: I've tried something like <a onClick="document.form.textbox.value='my value here';return false" href="##> Link here </a> to change the value of the textbox when the form was inside the same document as the code... but I'm having trouble getting that code to reach out of the iframe and change it's parent.... THanks a mill for any speedy responses!!!
Try adding target="_parent" to your link, like this: <a target="_parent" onClick="document.form.textbox.value='my value here';return false" href="##> Link here </a> Code (markup): Not sure if this will work, but it's worth a try.
Is their a way to make the value equal the text content following it... here's what i need <a Target=_parent onClick="window.parent.form.textbox.value='get following text here'; return false" href=dining.html#city>This text becomes the value</a>
I am not sure what you mean. You want the text between the <a> tags to be the text to be put in the textarea? If so: <a Target=_parent onClick="window.parent.form.textbox.value= this.innerHTML; return false" href=dining.html#city>This text becomes the value</a>