<html>
<head>
<script language='javascript'>
function sleep()
{
var Sleep = setTimeout("alert('Hi Have A Nice Time And Day ')",2000);
// 2000 Millisecond(2 sec)
}
</script>
<body onload='sleep()'>
Alert Box Will Be Displayed After 2 Seconds the Body is Loaded
</body>
</html>
<head>
<script language='javascript'>
function sleep()
{
var Sleep = setTimeout("alert('Hi Have A Nice Time And Day ')",2000);
// 2000 Millisecond(2 sec)
}
</script>
<body onload='sleep()'>
Alert Box Will Be Displayed After 2 Seconds the Body is Loaded
</body>
</html>
Note: Tested In IE 7
Program Demo
No comments:
Post a Comment