______________________
| | here is the javascript code,
| | in frame1
|_____________________|
| |
| | in frame2, i have a textarea
|_____________________|
I can't figure out how to access the textarea to get and set text.
I tried
var p = parent.document.getElementById("targetframe") p.getElementByName("targetboxname").value="fdsafdsfas";
but that doesnt work. however it works to set the textarea when they are in the same frame (removing the getelement for the frame of course)
so the problem lies in accessing the textarea in frame2 from frame1.
| | here is the javascript code,
| | in frame1
|_____________________|
| |
| | in frame2, i have a textarea
|_____________________|
I can't figure out how to access the textarea to get and set text.
I tried
var p = parent.document.getElementById("targetframe") p.getElementByName("targetboxname").value="fdsafdsfas";
but that doesnt work. however it works to set the textarea when they are in the same frame (removing the getelement for the frame of course)
so the problem lies in accessing the textarea in frame2 from frame1.