// Functions *************************************************** // Test Function TODO : Remove function Greet() { document.write("Greetings Friend" + "
"); } // TODO : Remove // Example of an event handler // Create a function to run for an event function mousealert() { alert ("Unauthorized access detected ... commencing virus download ... you have 7 days to email douellette@redoemold.com for the antidote"); } // Assign the function to the event of an object. // In this case the object is the document. // document.onmousedown = mousealert;