function init() { document.write("The time is: " + Date() ); } window.onload = init;