url - web automation property

Returns the URL for the current IHTMLDocument2 document.

Applies to:
Browser
  var u = browserObj.url;
Arguments:
None.
Remarks:
In case of failure this web automation property throws a script exception and the lastError property of the Core object is set to FAIL_ERROR or BROWSER_CONNECTION_LOST_ERROR.
Example:
var coreObj    = new ActiveXObject("OpenTwebst.Core");
var newBrowser = coreObj.StartBrowser("http://www.codecentrix.com/");
newBrowser.WaitToLoad();
WScript.Echo(newBrowser.url);
		
See also:
Browser | Navigate | StartBrowser | title

© 2017 CodeCentrix Software. All rights reserved.