Wie kann ich ein Iframe automatisch aktualisieren lassen?
Ich habe 4 Iframes, die sich alle (wenn möglich gleichzeitig) 5 Sekunden aktualisieren sollen.
Die Iframes:
https://thelegalgroup.xyz/eu1
https://thelegalgroup.xyz/eu4
Die Seite auf der die Iframes zu sehen sind:
https://thelegalgroup.xyz/driverhub
2 Antworten
Von gutefrage auf Grund seines Wissens auf einem Fachgebiet ausgezeichneter Nutzer
HTML, JavaScript
Wie kann ich ein Iframe automatisch aktualisieren lassen?
Javscript:
setTimeout(function(){
document.getElementById('frame1').contentWindow.location.reload();
document.getElementById('frame2').contentWindow.location.reload();
document.getElementById('frame3').contentWindow.location.reload();
document.getElementById('frame4').contentWindow.location.reload();
}, 5000);
HTML:
<iframe id="frame1" src = ... >
<iframe id="frame2" src = ... >
<iframe id="frame3" src = ... >
<iframe id="frame4" src = ... >
Alex
Wie passe ich das an, weil ich ja keine PHP Datei, sondern ein Iframe habe.