parent.document.getElementById(“next”).innerHTML=window.frames[‘hiddenframe’].document.body.innerHTML;
Error: window.frames.hiddenframe is undefined
this is the error i get.
i have given an id for iframes as hiddenframe but still it isnt working.
i cant see to find my mistake please help.
You need to use the contentWindow property.
document.getElementById('hiddenframe').contentWindow.document.body.innerHTMLThat will allow you to access the contents of the iframe.
The way you have it at the moment, you would be accessing the frame via the name attribute, not the ID.