Purpose
You want to hide scrollbars in an embedded website.

It may not be possible to change the content of an embedded page directly using the saved HTML code. However, it is possible to change the current display of the page using a JavaScript method.

Solution
Use the following GuiXT script to change style of the <body>-element:

to clipboard
Set text[hide_scrollbars] _ 
  "document.body.style.overflow='hidden'" 
 
connectHTML name="mywebview" run="hide_scrollbars"



Hint:
The scrollbars might be visible for a short time. Therefore it is recommended to load the site in an invisible webview, hide the scrollbars and after that, set the control to be visible.

Example:

to clipboard
WebView (0,0) (20,120) "https://microsoft.com" _ 
  name="v2" -floating  title="Chat2" _ 
  iconfile="map.ico" -invisible
 
Set text[hide_scrollbars] _ 
  "body.style.overflow='hidden'"
 
connectHTML  run="hide_scrollbars"
connectHTML  visible="On"

Result

Components
InputAssistant + Controls