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