Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Queries the current HTML of the document.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 2.8 Yes Yes No No Yes
MBS( "WebView.GetHTMLText"; WebViewerRef )   More


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


Returns html code as text or error.


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.

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


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

Example Databases

Blog Entries

Created 18th August 2014, last changed 26th February 2017

WebView.GetFormattedText   -   WebView.GetHidden

Feedback: Report problem or ask question.

MBS Xojo Plugins