JavaScript- Functions by using PopUps!!

Posted on 23/09/2009 by

1



JavaScript Function

Example 1:

Input

<html>
<head>
<script text=”Javascript”>
function timedMsg()
{
var t=setTimeout(“alert(‘5 seconds’)”,5000)
{
alert(“Click on the button to see the alert msg after 5 seconds”);
}
}
</script>
<input type=”submit” value=”Click” onClick=”timedMsg()”
</body>
</html>

Output

Click Btn

click btn shot

Click Btn with PopUps:


click btn with popup message

Click Btn after 5 seconds of PopUps


click btn with pop up 2



Advertisements
Posted in: Coding, JavaScript