Click to See Complete Forum and Search --> : copying elements..
How can I copy elements from one iframe to another?
I have two Iframes and they are nested.
Ther outer Iframe is called main and the innner iframe is called sub.
I want to copy some input text values from sub to main.
Please help me
thanks
If I understand you correctly, something like this should work:
parent.document.formname.inputname.value = document.formname.inputname.value;
thanks Pyro.
One more question: If I want to submit the form contained in my "sub" iframe from my outer "main" frame, will it work I
say
document.subform.submit(); from my outer Iframe?
You would need to use something like this:
top.outeriframename.inneriframename.document.formname.submit();
Or you could try (though I'm not certain it will work)
self.inneriframename.document.formname.submit();
If you try the second method, let me know if it works.
Thanks Pyro...I will have to try that tomorrow at work.I will let you know if that works.
Good Night :)
The second method works like a charm! Thanks Pyro
Ok, add that to my mental list of things that will work... ;) lol