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
Add a new label in your web page
Clock time will display in place of label.
Java script Code
$(document).ready(function () { ShowTime(); }); function ShowTime() { var dt = new Date(); $("#lblTime").html(dt.toLocaleTimeString()); window.setTimeout("ShowTime()", 1000); // Here 1000(milliseconds) means one 1 Sec }
<div id="lblTime" ></div>
0 comments :
Post a Comment