The button tag provides a simple button. The
button is rectangular and typically displays a text label describing
its action. The button adjusts to fit the label.
Example 39. Simple button
<canvas height="30">
<button onclick="animate('x', 100, 1000, true)">
Move me
</button>
</canvas>
If you need to format the text using additional tags such as
b, add the text inside the button tags instead of
using the text attribute.
Example 40. XHTML button
<canvas height="30">
<button onclick="animate('x', 100, 1000, true)">
Move <b>me</b>
</button>
</canvas>
A button may contain both XHTML markup, and
object tags such as attribute and
method.
Example 41. XHTML button
<canvas height="30">
<button onclick="moveHoriz(5);">
Move <b>me</b>
<method name="moveHoriz" args="moveAmount">
this.setAttribute("x", this.x+moveAmount);
</method>
</button>
</canvas>
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.