This bar chart uses the ModalDialog which in turn uses the onmodaldialog event which is added using DOM1 style methods. Click on the canvas and a ModalDialog will be shown that uses the DOM1 style onmodaldialog event to show an alert().