DefaultButton

DefaultButton[]
represents an OK button that closes a dialog, and is the default when Enter is pressed in the dialog.

DefaultButton[action]
represents a button that is labeled OK, and whose action is to evaluate action.

DefaultButton[label, action]
uses label as the label for the button.

Details and OptionsDetails and Options

New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »