1) Why does the script below work,
when the commented line,
that supposedly does the same thing,
does not?
2) In fact, am I wrong, to think that the commented line
is the "more correct" way to go?
-------------------------------------------------------
var int=self.setInterval("clock()",50);
function clock() {
var t = new Date();
// document.get ElementById("clock").setAttribute("value", t);
document.getElementById("clock").value=t;
}
---------------------------------thank you-------------
when the commented line,
that supposedly does the same thing,
does not?
2) In fact, am I wrong, to think that the commented line
is the "more correct" way to go?
-------------------------------------------------------
var int=self.setInterval("clock()",50);
function clock() {
var t = new Date();
// document.get ElementById("clock").setAttribute("value", t);
document.getElementById("clock").value=t;
}
---------------------------------thank you-------------