This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Notebooks / Basic Objects /


FilledSmallSquare ButtonNotebook[ ] gives the notebook, if any, that contains the button which initiated the current evaluation.

FilledSmallSquare ButtonNotebook returns a NotebookObject.

FilledSmallSquare If a button in a palette initiates evaluation in another notebook, then ButtonNotebook[ ] will be the palette, but EvaluationNotebook[ ] will be the other notebook.

FilledSmallSquare If the current evaluation was not initiated by a button, then ButtonNotebook[ ] will return $Failed.

FilledSmallSquare See Section 2.11.3.

FilledSmallSquare See also: Notebooks, EvaluationNotebook, SelectedNotebook, InputNotebook.

FilledSmallSquare New in Version 3.