CSC 5750 Lecture Notes - Lecture 9: Javascript Library, Jquery, Html Element
Document Summary
Javascript events jquery intro jquery library access jquery statement syntax jquery selectors jquery actions jquery document. ready function. The same event in more than one way. Events may be triggered in several ways including: When an event response is defined, there is typically one event and one response. An event response may be defined in html or javascript. There are three ways to define an event: Event names are prefixed with on in html and javascript method. Event names are not prefixed with on in javascript method addeventlistener. If the same event type response is defined for both a child html element and its parent html element, by default, the child version will be called first and then the parent version second. To prevent bubbling, the child event must cancel bubbling with: We can trigger the playing of an audio or video file with an event. See javascript statements on canvas. jquery intro.