This method of the IWebBrowser2 interface retrieves a Boolean value that indicates whether Microsoft® Internet Explorer is the top-level container of the WebBrowser control.
public boolean getTopLevelContainer();