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

item