Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebView.Scrollbar.getHorizontalPosition

Queries current value for horizontal scrollbar.

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

Parameters

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

Result

Returns value or error.

Description

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

Examples

Query current and maximum:

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

See also

Release notes

Blog Entries

This function is free to use.

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


WebView.Scrollbar.getHorizontalMaximum - WebView.Scrollbar.getVerticalMaximum

💬 Ask a question or report a problem