listing 9.2 capturing onclick event properties