({{, (RefLink[WindowClickSelect, paclet:ref/WindowClickSelect])
is a notebook option that specifies whether the window for the notebook should become selected if you click it. }})

OpenersNotesSection(Spacer1)Details

With (RefLink[WindowClickSelect, paclet:ref/WindowClickSelect])->(RefLink[True, paclet:ref/True]), clicking the window corresponding to a notebook makes that notebook the currently selected one.

(RefLink[WindowClickSelect, paclet:ref/WindowClickSelect]) affects selection of a window as a whole; (RefLink[Selectable, paclet:ref/Selectable]) affects only selection of the contents of a window.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Create a notebook that does not become the selected notebook when clicked:

nb=CreateDocument[TextCell[PasteButton["text"],"Text"],WindowClickSelect->False,WindowSize->All];

Clicking the "text" button pastes "text" into the currently selected notebook:

"text"

With (RefLink[WindowClickSelect, paclet:ref/WindowClickSelect])->(RefLink[True, paclet:ref/True]), clicking the button causes its notebook to be selected:

SetOptions[nb,WindowClickSelect->True]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[WindowFloating, paclet:ref/WindowFloating])  ▪  (RefLink[SetSelectedNotebook, paclet:ref/SetSelectedNotebook])  ▪  (RefLink[WindowOpacity, paclet:ref/WindowOpacity])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Options for Notebooks, paclet:tutorial/OptionsForNotebooks])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Window Properties, paclet:guide/WindowProperties])}})}})