When I try to reference document or window or to use $ selectors I get error messages that these objects are undefined. How can I manipulate DOM?
My ultimate goal is to demonstrate how events work in capture/target/bubble phases, and to attach handlers for visualization.
When I try to reference
documentorwindowor to use$selectors I get error messages that these objects are undefined. How can I manipulate DOM?My ultimate goal is to demonstrate how events work in capture/target/bubble phases, and to attach handlers for visualization.