Check out the Dialog Widget and the Dialog JSB, too, in the Netscape Component Developer's Kit (CDK) 1.0.
The following is an example of how to construct a button from the exampleButton() menthod in the button.js source.
feedback