This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

WidgetMessage: tm-focus-selector

 23rd July 2023 at 9:51pm

The tm-focus-selector message sets the focus to the DOM element identified by the selector in the param parameter.

NameDescription
paramSelector identifying the DOM element to be focussed
{any other params}Any other parameters to be passed to the focus() method as variables.

Tip
Use preventScroll="true" to prevent the browser from scrolling to the focused element