Styles (script)

Use setStyle(name, value) to assign style attributes to the button control.

	obj.setStyle("color", "red");
	obj.setStyle("font-weight", "bold");
	obj.setStyle("text-align", "right");
	obj.setStyle("width", "200px");

Back to button examples, all examples