Button: setText

Modify the text of a Button. Available for Buttons and text Buttons..

Example

button.setText('new text')

Demo

file: addButton.html

Run the example
See the source code

file: addMenu-1.html

Run the example
See the source code

Syntax

Button.setText(text)

Parameters

text

String. The new caption of the Button

Return value

no return value