There are two ways to accomplish this: In both cases, the Button in the HTML document itself will not initially have an onclick event assigned to it when defined: In the HTML segment above, the button has no events assigned to it. All events bubble by default.
, ,