EventsDOM - ANNOUNCEMENTS No posting of code in the forum...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ANNOUNCEMENTS No posting of code in the forum Check class announcements daily 1 2 EVENTS Event Notification that something has occurred Example of situations that make the web browser generate an event Browser finishes loading a document When the user clicks on a button When the user moves the mouse Others Event handler (also known as event listener) JavaScript function or code fragment that is executed when a particular event occurs Event handler registration Associating an event handler with a particular event 3 EVENT-DRIVEN PROGRAMMING Normal (control flow-based) programming Approach Start at main() Continue until end of program or exit() Event-driven programming Start at main() Register event handlers Await events & perform associated computation GUIs (Graphical User Interfaces) Example of event-driven software 4 EVENT HANDLER ATTRIBUTES FOR MOST HTML Mouse Related onclick mouse button is pressed and released...
View Full Document

This note was uploaded on 01/12/2012 for the course CMSC 122 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 9

EventsDOM - ANNOUNCEMENTS No posting of code in the forum...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online