URL Property

The URL property sets or retrieves the URL for the current document. This property is valid for Page and Frame objects.

The following example displays the URL for the Web page that is currently open in the browser.

The example is written in VBScript. To write similar code in Python, use the print method instead of msgbox and add parentheses '()' at the end of the code.

Copy code
msgbox Browser("Browser").Page("Page").Object.URL