BrowserWindow.
Closes a modal browser dialog box, a tab of the browser, or the browser itself if it is the last tab (or Internet Explorer 6).
This functionality is supported only if you are using the Open Agent.
browserwindow.Close()
InternetExplorer.Page.Close()