A button object in a computer should have at least these two properties:
1. It should acknowledge a mouse click or key press.
2. It should trigger a functional code within the software to perform a specific task.
To perform its intended function properly, it is necessary for the button to have a title that clearly describes the function that it performs.
For example, the button could define a new color that is to be assigned to a graphics object or to a font.
Once the button is pressed, the button should trigger execution of code that actually implements the change in color.