Yeh, counterInput is only in scope in yer start() function. You created a variable counterInput which points to a document element named "input" in that function when you said:
Code:
var counterInput = document.createElement("input");
So you could just give it the name you wanted:
Code:
var counterInput = document.createElement("counterInput");
Or call it with the name input thus:
Code:
document.getElementById("input").value = seconds + "." + milisec;
HTH
--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock:
http://charlieharvey.org.uk