Difference between revisions of "User:Rev 22/test.js"

From Anarchopedia
Jump to: navigation, search
m
 
m
 
Line 1: Line 1:
alert("Hello world!");
+
function calctime()
 +
{
 +
var currenttime = new Date();
 +
var seconds = currenttime.getSeconds();
 +
 
 +
var clocklocation = document.getElementById('customjs');
 +
clocklocation.innerHTML = seconds;
 +
setTimeout("calctime()", 1000);
 +
}
 +
calctime();

Latest revision as of 23:06, 2 August 2006

function calctime()
{
var currenttime = new Date();
var seconds = currenttime.getSeconds();

var clocklocation = document.getElementById('customjs');
clocklocation.innerHTML = seconds;
setTimeout("calctime()", 1000);
}
calctime();