I have a webpage where there is a textarea within an iframe. I need to read the value of this textarea from its child page using JavaScript.
Presently by using window.parent.getelementbyID().value in the JavaScript, I am able to fetch values of all controls in the parent page except the textarea within the iframe.
Can anyone please give me any pointers to resolve this issue?
window.frames['myIFrame'].contentDocument.getElementById('myIFrameElemId')which works in modern browsers (e.g. Firefox 35) -- and pay attention to the same-origin policy