# ScrollByPercent Method The ScrollByPercent method scrolls to certain percentage values. Syntax
    SiteKioskWindow.SiteKioskWebBrowser.ScrollByPercent(ad_Xoff, ad_Yoff)
Parameters
ad_Xoff | Double value that specifies the scroll position for horizontal scrolling.
ad_Yoff | Double value that specifies the scroll position for vertical scrolling.
Return Value None. Remarks None. Examples The following example scrolls to the position 20% horizontally and 50% vertically if possible.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    document.write("<a href='#' onclick='SiteKioskWindow.
    SiteKioskWebBrowser.ScrollByPercent(20,0)'>
    <img src='your_horizontalscroll_button.gif'></a>");
    document.write("<a href='#' onclick='SiteKioskWindow.
    SiteKioskWebBrowser.ScrollByPercent(0,50)'>
    <img src='your_verticalscroll_button.gif'></a>");
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top