{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

JavaScript - Part 2 - CGS 2585 Desktop/Internet Publishing...

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

View Full Document Right Arrow Icon
CGS 2585: JavaScript Part 2 Page 1 © Dr. Mark Llewellyn CGS 2585: Desktop/Internet Publishing Spring 2011 Introduction To JavaScript Part 2 Department of Electrical Engineering and Computer Science University of Central Florida Instructor : Dr. Mark Llewellyn [email protected] HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cgs2585/spr2011
Image of page 1

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

View Full Document Right Arrow Icon
CGS 2585: JavaScript Part 2 Page 2 © Dr. Mark Llewellyn In the examples from part 1 of the JavaScript notes, the scripts were triggered automatically. In other words, the visitor didn’t need to do anything for the script to execute. These were “automatically triggered” scripts. Sometimes you do not want the script to run until the visitor does something to trigger it. For example, you might want to run a script when the visitor mouses over a particular image or link, or when a page is loaded. These actions mousing over or loading a page are called intrinsic events . There are currently 18 predefined intrinsic events you can use as triggers to determine when a script will run. The table on the next couple of pages list these intrinsic events and which elements they work with. Triggering A Script
Image of page 2