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: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  


Queries maximum value for horizontal scrollbar.

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


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


Returns value or error.


Queries maximum value for horizontal scrollbar.
Alternative you can run JavaScript to query document.scrollingElement.scrollWidth yourself.


Query current and maximum:

MBS( "WebView.Scrollbar.getHorizontalPosition"; "web" ) & " of " & MBS( "Webview.Scrollbar.getHorizontalMaximum"; "web" )

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 22nd December 2014, last changed 19th May 2021

WebView.Screenshot - WebView.Scrollbar.getHorizontalPosition

💬 Ask a question or report a problem

Start Chat