This script uses a very simple button to create an alert box with a message. In the script, the line of code input type="button" , creates the button into its visual shape. On click, defines the message the message that will appear when the button is clicked. value defines what will be written on the button.