ButtonNotebook

ButtonNotebook[]

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

Details

Examples

open allclose all

Basic Examples  (1)

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

In[1]:=
Click for copyable input
Out[1]=

After the button is clicked, the variable is assigned:

In[2]:=
Click for copyable input
Out[2]=

Use the object for further processing:

In[3]:=
Click for copyable input
Out[3]=

Applications  (1)

Properties & Relations  (1)

See Also

Notebooks  EvaluationNotebook  SelectedNotebook  InputNotebook

Tutorials

Introduced in 1996
(3.0)