gives the notebook, if any, that contains the button which initiated the current evaluation.



open allclose all

Basic Examples  (1)

Make a button that sets nb to the NotebookObject for the button's notebook:

After the button is clicked, the variable is assigned:

Use the object for further processing:

Applications  (1)

Create a palette button that writes to the input notebook and then closes the palette:

Properties & Relations  (1)

The button notebook is sometimes not the same as the current input notebook:

After clicking the button, these two notebooks are different:

Introduced in 1996