Creates an interactive button object in the console, that the user can click on.
Holds content to be displayed on the face of the button.
Most buttons include a short string of text to allow the user to understand the purpose of the button.
Richer content such as an <img>
tag might be included to provide a graphical icon on a button.
The button tag renders a simple interactive button on the screen at the position where it is created, as long
as it is created within a presentation container that is currently visible on the screen, and its visible field is not
set to false
.
When the user clicks the button, any code attached to the onClick field is executed.