This commit is contained in:
Brychan Dempsey 2021-06-05 19:58:16 +12:00
parent a77b1e5589
commit 1e31bbaa75

View File

@ -2,6 +2,7 @@
<script> <script>
var docframe = document.getElementById("docFrame").contentWindow.document.body.innerHTML; var docframe = document.getElementById("docFrame").contentWindow.document.body.innerHTML;
console.log(docframe); console.log(docframe);
alert("Content: \n" + docframe);
var targetContent = docframe.querySelector(".file-view"); var targetContent = docframe.querySelector(".file-view");
docframe.getElementsByTagName('body')[0].innerHTML = targetContent.innerHTML; docframe.getElementsByTagName('body')[0].innerHTML = targetContent.innerHTML;