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

WebView.SetFocus

Sets focus to web viewer.

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

Parameters

Parameter Description Example
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.

Result

Returns OK or error.

Description

Sets focus to web viewer.
Usually you use Go To Object, but this sets via OS function directly.
FileMaker may overwrite the focus quickly!

Examples

Set focus to web viewer:

Set Variable [ $r; Value: MBS("WebView.SetFocus"; "web") ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 11st September 2019, last changed 26th September 2023


WebView.SetEditable - WebView.SetFormButtonValue