Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Created May 18, 2022 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/573b09b140ecea1e8797f036e9f52e88 to your computer and use it in GitHub Desktop.
Save jpluimers/573b09b140ecea1e8797f036e9f52e88 to your computer and use it in GitHub Desktop.
Embed html page in iframe then autorefresh that iframe every 5 minutes (1000 milliseconds * 60 seconds per minute * 5 minutes = 30000 milliseconds)
javascript:document.getElementsByTagName("body")[0].innerHTML = "<iframe id=\"testFrame\" src=\""+window.location.toString()+"\" style=\"position: absolute; top:0; left:0; right:0; bottom:0; width:100%; height:100%;\"><\/iframe>";reloadTimer = setInterval(function(){ document.getElementById("testFrame").src=document.getElementById("testFrame").src },300000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment