AspBucket offers ASP.NET, C#, VB, Jquery, CSS, Ajax, SQL tutorials. It is the best place for programmers to learn

Tuesday 15 December 2015

Show running clock in website

Here I am going to discuss how to display a clock on the website. It will pick up client system time & display on the clock. This can done with the help of Jquery & Javascript.
Java script Code
$(document).ready(function () {           
function ShowTime() {
    var dt = new Date();
     window.setTimeout("ShowTime()", 1000); // Here 1000(milliseconds) means one 1 Sec  
Add a new label in your web page
<div id="lblTime" ></div>
Clock time will display in place of label.


Post a Comment

  • Popular Posts
  • Comments