Example of onClick Event Handler

Click on the button after inputting your name into the text box: