javascript events

Use javascript events to trigger function calls.

Only the first in this list is functional. Add code to implement the functionality described by each list item!

Bonus Challenge:

Externalize the javascript into a separate document.