<button>
A button is an on-screen element designed to represent the visual metaphor of a button that the user can press. Button elements change their appearance as the user clicks on them, providing intuitive visual feedback to the user.
Are you sure you want to exit?
To make a button useful, define its onClick field to perform some action (e.g. sending input back to your program using the put tag).
Note: many markup elements besides buttons (e.g. box, span, img, ...) can also respond to mouse clicks. However, a button element displays visual cues which can help make the user's experience more intuitive in certain instances.
Fields
The default field specifies text content, including any markup tags and special elements, to be presented within the button element.
Additionally, the following named fields can be defined on this tag. Please refer to the field reference section of this site for details on each field.
- align
- backgroundColor
- bold
- border
- borderBottom
- borderColor
- borderLeft
- borderRight
- borderTop
- bottom
- color
- height
- inline
- italic
- layer
- left
- margin
- marginBottom
- marginLeft
- marginRight
- marginTop
- mouse
- onClick
- onContextClick
- onExit
- onMouseDown
- onMouseIn
- onMouseMove
- onMouseOut
- onMouseUp
- right
- rotate
- size
- spacing
- spacingBottom
- spacingLeft
- spacingRight
- spacingTop
- top
- underline
- visible
- width