Assignment
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.
Template/Demo
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.
Ideas
- 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