Does anyone know if there is a way to add a iframe directly under the <body>
tag? I see the appendChild but that does it before </body>
. Any suggestions will be helpful.
Also, I doubt there is a way. But the website that is inside the iframe. Is it possible to have there drop downs, hover beyond the restricted iframe?
ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src", "http://example.com");
ifrm.style.width = "100%";
ifrm.style.height = "30px";
document.body.appendChild(ifrm);