WebBrowserObject

Is there a way to retrieve the currently displayed url?

For example, if I go to www.apple.com and the click on “Learn More” the WebBroserObject will now be displaying the page for “iPhone 12 and iPhone 12 mini - Apple”. I want to be able to grab from the WebBroserObject what the url is that is being displayed. Or, does the WebBroserObject have the ability for a “Back” button?

You can do this with JavaScript, like this. (Of course substitute the actual name of your object where it says “Web Browser”.)

local scriptResult
objectaction "Web Browser","script",{document.URL;},scriptResult

Perfect! Thank you Jim.