..
This commit is contained in:
parent
1e31bbaa75
commit
35caf24749
10
Wiki.html
10
Wiki.html
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user