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.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0    Statistic  


Queries list of user scripts.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WebView 9.5 Yes No No No Yes
MBS( "WebView.UserScripts"; 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 JSON or error.


Queries list of user scripts.
Returns JSON array of objects with three fields for each script: source, injectionTime and forMainFrameOnly.
injectionTime is either AtDocumentStart or AtDocumentEnd.
forMainFrameOnly is a boolean value.


Query user scripts:

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

Example result:
"forMainFrameOnly" : true,
"source" : "alert('Hello');",
"injectionTime" : "AtDocumentEnd"

See also

Blog Entries

Release notes

Created 8th November 2019, last changed 5th January 2020

WebView.StopLoading   -   WebView.canResetPageZoom

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins