Can you put your code into a function and call it when the window loads?
Code:
window.onload = function() {
document.getElementById('login').innerHTML = "It works!";
}
This code does teh same thing your code above does... is that all you want to do is write to a div? Just to do that, your script is over-complicated.
Last edited by funkdaddu; 08-15-2006 at 10:41 PM..
|