There are quite a few other event handlers. The next most common is probably onclick. This event appears in each of the links on the right and, well, you can see the result. Once again I'm using it to roll over an image: subsequent slides will suggest other applications of JavaScript events.
onclick can also be coded into form buttons, although we haven't discovered how to create them yet. They'll appear in the next lecture. Some of the other event handlers given below also work best with form elements and are worth remembering for next week. |