From Xojo Documentation
Supported PlatformsProject Types: Web Platforms: macOS, Windows, Linux
- For desktop applications, see PushButton.
New in 2010r4
The standard button used for web applications. This control is implemented as a native browser control. You can alter its look by using a Style.
When the button is clicked, tapped or otherwise selected, the Action event handler is called.
You can completely alter the look of the button by creating a style with the appropriate properties and assigning it to the Style property of the button using the Layout Designer or in code.
Note that applying a WebStyle to a button will likely cause its default appearance to change. For example, buttons in Safari appear by default with rounded corners. If you apply a style to change the background, but do not specify the corner properties, then the button will appear as a rectangle in Safari.
This code changes the Caption of a button between Start/Stop when you click it: