ce serait très frole si ca marche
This commit is contained in:
parent
1710ade2c1
commit
7e6062ca1c
|
@ -14,12 +14,9 @@
|
||||||
var myIframe = document.getElementById('iframe');
|
var myIframe = document.getElementById('iframe');
|
||||||
myIframe.addEventListener("load", function() {
|
myIframe.addEventListener("load", function() {
|
||||||
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
||||||
|
reloadIFrame();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.setInterval(function() {
|
|
||||||
reloadIFrame()
|
|
||||||
}, 500);
|
|
||||||
|
|
||||||
function reloadIFrame() {
|
function reloadIFrame() {
|
||||||
console.log('reloading..');
|
console.log('reloading..');
|
||||||
document.getElementById('iframe').contentWindow.location.reload();
|
document.getElementById('iframe').contentWindow.location.reload();
|
||||||
|
|
Loading…
Reference in New Issue