Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <script> // Wait for DOM to load document.addEventListener("DOMContentLoaded", function(event) { // Do the automatic refresh window.setTimeout(function(){ document.location.reload(true); }, 3500); // Test the refresh by outputting the time in milliseconds document.getElementById("timestamp").innerText = new Date().getTime(); }); </script> <p><span id="timestamp"></span> milliseconds since midnight, January 1, 1970.</p>
Preview