Windows timer : setTimeout « Window Browser « JavaScript DHTML
- JavaScript DHTML
- Window Browser
- setTimeout
Windows timer
<html>
<head>
<title>timer</title>
<script type="text/javascript">
function sendAlert() {
document.write("Hello");
}
function startTimer() {
var timerID = window.setTimeout(sendAlert,8000);
}
</script>
</head>
<body onload="startTimer();">
<p>Hello</p>
</body>
</html>
Related examples in the same category