// Ask for the user's name.
var name = prompt("What is your name?", "");

// Hides the dynamically loaded message.
function hideMsg(){ gE("msg").style.display = "none"; }

// Shortcut because of common use.
function gE(id){ return document.getElementById(id); }

window.onload = function()
{
	alert('FYI, this page has finally finished loading.');
	// Hide the dynamically loaded message in 15 seconds.
	if(gE("msg"))
		setTimeout("hideMsg()", 15 * 1000);
}

window.onunload = function(){ alert(goodbyeMessage); }

window.onscroll = function(){ alert('The page was just scrolled.'); }
