Week 05: Assignment – Events


Create two links that open alerts on the click event (or that do something else more interesting on an event), using at least two different methods.


Tools you will need

  • document.getElementById(‘…’)
  • onClick=”…”
  • Lecture 05

Extra Credit

Add an additional element to this page so that it does something else interesting.


  • What else can you make the links do using events?
  • Don’t use alerts, they suck. Try something different.
  • Rather than using the click event, try using mouseover, mouseout, mousedown, mouseup, focus, or other events.

Publish this page on your Assignments Page by next week’s lecture

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Web Development Courses, Rants, Tutorials and Hacks