60 likes | 173 Views
DOM Interactions. Sarah Dutkiewicz Cleveland Tech Consulting, LLC sarah@cletechconsulting.com. Course Overview. Helps prepare for “Programming in HTML5 with JavaScript and CSS3” Exam 70-480 Demo code available at: Codeshow.codeplex.com. Session Topics. Querying the DOM
E N D
DOM Interactions Sarah Dutkiewicz Cleveland Tech Consulting, LLC sarah@cletechconsulting.com
Course Overview • Helps prepare for “Programming in HTML5 with JavaScript and CSS3” Exam 70-480 • Demo code available at: Codeshow.codeplex.com
Session Topics • Querying the DOM • Manipulating the DOM • Responding to events
Querying the DOM • getElementbyid • Getelementsbyname • Queryselector • queryselectorall
Manipulating the DOM • Add • Modify • REMOVE • Change Style
Event Handling • Declarative • Onclick in the HTML tag, Handler in JS within scope • Programmatically • addEventListener • removeEventListener • Anonymous functions