WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

ButtonNotebook []

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

Details
Details and Options Details and Options
Examples  
Basic Examples  
Applications  
Properties & Relations  
See Also
Tech Notes
Related Guides
Related Workflows
History
Cite this Page

ButtonNotebook []

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

Details

Examples

open all close 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:

Related Workflows

History

Introduced in 1996 (3.0)

Wolfram Research (1996), ButtonNotebook, Wolfram Language function, https://reference.wolfram.com/language/ref/ButtonNotebook.html.

Text

Wolfram Research (1996), ButtonNotebook, Wolfram Language function, https://reference.wolfram.com/language/ref/ButtonNotebook.html.

CMS

Wolfram Language. 1996. "ButtonNotebook." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ButtonNotebook.html.

APA

Wolfram Language. (1996). ButtonNotebook. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ButtonNotebook.html

BibTeX

@misc{reference.wolfram_2025_buttonnotebook, author="Wolfram Research", title="{ButtonNotebook}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ButtonNotebook.html}", note=[Accessed: 06-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_buttonnotebook, organization={Wolfram Research}, title={ButtonNotebook}, year={1996}, url={https://reference.wolfram.com/language/ref/ButtonNotebook.html}, note=[Accessed: 06-December-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /