Close - web automation method

Closes the Internet Explorer instance represented by the Browser web automation library object.

Applies to:
Browser
  browserObj.Close();
Arguments:
None.
Remarks:
The method throws a web macro exception if the browser instance can not be closed (for example, if the browser is already closed). In this case the lastError property of the Core object is set to FAIL_ERROR or BROWSER_CONNECTION_LOST_ERROR.
Example:
var coreObj    = new ActiveXObject("Twebst.Core");
var newBrowser = coreObj.StartBrowser("http://codecentrix.blogspot.com/");
newBrowser.Close();
		
See also:
Browser | StartBrowser | StartHiddenBrowser

© 2014 CodeCentrix Software. All rights reserved.