Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script type="text/javascript">
function startIncrement() {
//this sets the incrementTime() function to be ran every 10 milliseconds
window.setInterval("incrementTime()", 10);
}
function incrementTime() {
var obj = document.getElementById("blah");
//set the text for the <div> equal to the milliseconds returned by getTime()
obj.innerHTML = new Date().getTime();
}
//assign the function to run when the page is done loading
window.onload = startIncrement;
</script>
<body>
<div id="blah"></div>
</body>