I need to get whole content of iframe from the same domain. Whole content means that I want everything starting from (including), not only &l
&l
If it is on the same domain, you can just use
iframe.contentWindow.document.documentElement.innerHTML
to get the content of the iframe, except for the and tag, where
iframe = document.getElementById('iframeid');