Ben, Setting the x/y scroll is easy: do "window.scrollTo(0,500);" in widget "nameOfBrowserWidget" See https://www.w3schools.com/jsref/met_win_scrollto.asp
I don't know how to get the current scroll position on random pages. If you have control of the html then you can set the javascriptHandlers in LC and have a callback to LC from a JavaScript handler in the html to interrogate the current scroll position. Ralph DiMola IT Director Evergreen Information Services [email protected] -----Original Message----- From: use-livecode [mailto:[email protected]] On Behalf Of Ben Rubinstein via use-livecode Sent: Wednesday, July 21, 2021 12:44 PM To: Use LiveCode Cc: Ben Rubinstein Subject: access scroll of browser widget The browser widget has properties hScrollbar and vScrollbar - but doesn't appear to have properties hScroll or vScroll. Is there any way to get and set the scroll (FWIW I'm only interested in the vertical) of a browser widget? TIA, Ben _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
