Button Widget

The Button Widget is made up of pure D-HTML (no native Form buttons or other native components are used, unless you specify it). Try it on every platform such as UNIX, Windows, Mac, and you should get exactly the same results, unlike native based button components such as the popular JavaScript Alert button box that doesn't let you specify a title or button label, etc. Via the simple Button API, the Button Widget lets you customize it all!

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 default button from the button.js source.

The following is an example of how to construct a button from the exampleButton() menthod in the button.js source.

feedback

[...]