TopLevelContainer property
Gets a value that indicates whether the object is a top-level container.
Syntax
Property values
Type: Boolean
One of the values in the Property Values section.
Remarks
The WebBrowser object returns False if it is in a frame; InternetExplorer always returns True.