Write a JavaScript program to display the time taken message?

Program: <html> <head> <script type="text/javascript"> function timedMsg() { var t=setTimeout(...

Program:
<html>

<head>

<script type="text/javascript">
function timedMsg()
{
var t=setTimeout("alert('I am displayed after 3 seconds!')",3000);
}
</script>

</head>

<body>

<form>

<input type="button" value="Display alert box!" onClick="timedMsg()" />

</form>

</body>

</html>

Out Put:

time display




Related

Web Technology 3529334901179542272

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item