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.
oInterval=window.setInterval(FctToCall, TimeWait)
FctToCall :
TimeWait :
FctToCall
<Html>
<head>
<Script language="Jscript">
var oInterval;
function RemindMsg(msg) {
oInterval=window.setInterval("ShowDelayedMsg('" + msg + "')", 2000);
// function stopTimer() will be called every 2 seconds
// Note that you can add any parameters to the function call.
}
function ShowDelayedMsg(msg) {
var oDiv=document.getElementById("container");
var oldContent = oDiv.innerHTML;
var curDate=new Date();
oDiv.innerHTML = oldContent + curDate + " : " + msg + "<BR>";
}
function stopTimer() {
window.clearInterval(oInterval);
// the timer is now stopped
}
</script>
</head>
<body>
<input type="button" value="start timer" onclick="RemindMsg('another message');"/>
<input type="button" value="stop timer" onclick="stopTimer();"/>
<div id="container"></div>
</body>
</html>