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: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  


Queries list of user scripts.

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


Parameter Description Example
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

Release notes

Blog Entries

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

WebView.StopLoading - WebView.Version

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat