This commit is contained in:
Brychan Dempsey 2021-06-05 20:07:44 +12:00
parent 1e31bbaa75
commit 35caf24749

View File

@ -1,11 +1,11 @@
<head>
<script>
var docframe = document.getElementById("docFrame").contentWindow.document.body.innerHTML;
console.log(docframe);
alert("Content: \n" + docframe);
var targetContent = docframe.querySelector(".file-view");
var x = document.getElementById("docFrame");
var y = (x.contentWindow || x.contentDocument);
if (y.document)y = y.document;
docframe.getElementsByTagName('body')[0].innerHTML = targetContent.innerHTML;
console.log(y.body.innerHTML);
</script>
</head>