Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

WebView.GetHTMLText

Queries the current HTML of the document.

Component Version macOS Windows Linux Server iOS SDK
WebView 2.8 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "WebView.GetHTMLText"; 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 html code as text or error.

Description

Queries the current HTML of the document.
This is not the HTML code loaded from the server, but the current state.
Typically the website is modified with Javascript to add widgets or hide/show things at runtime.
For websites with frames, result may only contain the main frame and not any child frames.

See also WebView.GetPlainText, WebView.GetFormattedText and WebView.SelectedText.

For Windows this function is only supported in FileMaker Pro when using Internet Explorer as engine behind the Web Viewer, but not when Microsoft Edge/Chrome engine is used.

Examples

Query plain text from webviewer:

MBS("WebView.GetPlainText"; "web")

Query html text from webviewer:

MBS("WebView.GetHTMLText"; "web")

Query formatted text from webviewer:

MBS("WebView.GetFormattedText"; "web")

Query selected text:

MBS("WebView.SelectedText"; "web")

See also

Release notes

Example Databases

Blog Entries

Created 18th August 2014, last changed 14th April 2020


WebView.GetFormattedText - WebView.GetHidden

Feedback: Report problem or ask question.