Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebView.MoveFocus

Moves the focus.

Component Version macOS Windows Linux Server iOS SDK
WebView 16.2 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WebView.MoveFocus"; WebViewerRef; Reason )   More

Parameters

Parameter Description Example
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
Reason The reason to move focus.
Pass Programmatic, Next or Previous.
"Programmatic"

Result

Returns OK or error.

Description

Moves the focus.
WebView will get focus and focus will be set to correspondent element in the page hosted in the WebView. For Programmatic reason, focus is set to previously focused element or the default element if no previously focused element exists. For Next reason, focus is set to the first element. For Previous reason, focus is set to the last element. WebView changes focus through user interaction including selecting into a WebView or Tab into it. For tabbing, the app runs MoveFocus with Next or Previous to align with Tab and Shift+Tab respectively when it decides the WebView is the next tabable element.

TextValueDescription
Programmatic0Specifies that the code is setting focus into WebView.
Next1Specifies that the focus is moving due to Tab traversal forward.
Previous2Specifies that the focus is moving due to Tab traversal backward.


See also

Release notes

  • Version 16.2
    • Added WebView.MoveFocus function.

Blog Entries

This function checks for a license.

Created 18th March 2026, last changed 18th March 2026


WebView.MakeTextStandardSize - WebView.Passwords.Clear