Give a time delay for a function in Javascript

Hi,
You people might have come across call a javascript function after some delay. I googled and find all incorrect things. Here i am posting the exact thing that needs.
<script type="text/javascript">
 setTimeout(function(){
 your_function_name();
 }, 3000);
</script>
The above function “your_function_name()” will be called after 3 second

*change the Name of the Function (Marked in Red Color)as per your need.

No comments:

Post a Comment