Nov 19, 2014

Set a Timer Using JQuery

The following piece of code can be used to set a timer using jQuery

$(document).ready(function(){
$(document).ready(function()
{
   window.setTimeout(function()
   {
   // some code
   }, 500);
});
});

Copy Paste This Code Below And Simply Do What Ever Your Planning To Do With It

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Set a Timer</title>
  
  </style>
  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
  <script>
$(document).ready(function(){
$(document).ready(function()
{ alert("timer started");
window.setTimeout(function()
{
alert("timer endeed");
}, 2000);
});
});
  </script>
</head>
<body>

</body>
</html>

No comments:

JWT Token Decode Using Jquery

When it come to authentication we use many mechanism. Ones the user authenticated we must keep these details somewhere safe. So we can share...