Translations:OOUI/Creating interfaces programmatically/44/en

The below example uses an event handler to display an alert when the button is clicked.