Pourquoi ca descend pas ?
This commit is contained in:
parent
72504e5cab
commit
98bb9ad6d0
|
@ -15,11 +15,14 @@
|
|||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
var myIframe = document.getElementById('iframe');
|
||||
|
||||
myIframe.addEventListener("load", async () => {
|
||||
let doc = myIframe.contentDocument;
|
||||
console.log(1);
|
||||
doc.body.innerHTML = doc.body.innerHTML + '<style>html{color:white;}</style>';
|
||||
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
||||
await delay(1000);
|
||||
console.log(2);
|
||||
await delay(2000);
|
||||
document.getElementById('iframe').contentWindow.location.reload();
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue