Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 26734 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > JavaScript > How to set timer using java script.? ...
Ranjeet_8

How to set timer using java script.?

 Code Snippet posted by: Ranjeet_8 | Posted on: 1/31/2013 | Category: JavaScript Codes | Views: 617 | Status: [Member] | Points: 40 | Alert Moderator   


Set timer using java script

//Java Script
    <script language="javascript" type="text/javascript">


window.setTimeout("HideDiv()", 15000); //Hide Div after 15 seconds
function HideDiv() {

document.getElementById('Layer2').style.display = "none";
}

</script>


// HTML
<div id="Layer2" >

Sample Text Here
</div>

Found interesting? Add this to:


>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/18/2013 7:23:28 AM