Re: VB Webbrowser and MS HTML Library. Frames? Please help



Mike2 <parksfamily@xxxxxxxxx> wrote:
> It returns true for all frames.

What do you mean, it returns true? activeElement returns an element
reference, not a boolean value.

> Now I have been playing around and have found by using,
>
> WebDoc2.parentWindow.Document.activeElement.src
>
> I can get the page's src that is in focus. But still have not
> successfully set my original WebDoc (that has all the events linked to
> it) to the framed document.

If activeElement points to a frame or iframe element (as you can
establish by checking tagName property), you can use
frameElement.containedWindow.document to get the frame's inner document.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.