A function is triggered when the button is clicked. The function outputs some text in a p element with id="demo".