self Timer

<script>

var t=self.setInterval("clock()",1000);
function clock()
{
var d=new Date();
var t=d.toLocaleTimeString();
document.getElementById("sp1").innerHTML=t;
}
span>
<button onclick="window.clearInterval(t)">Stop Interval </button>




Comments

Popular posts from this blog

iCalendar - Create .ics file using C#

FUNNY ABBREVIATIONS