Re: VB Webbrowser and MS HTML Library. Frames? Please help
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Thu, 19 Jan 2006 17:41:17 -0500
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
.
- Follow-Ups:
- References:
- VB Webbrowser and MS HTML Library. Frames? Please help
- From: Mike2
- Re: VB Webbrowser and MS HTML Library. Frames? Please help
- From: Igor Tandetnik
- Re: VB Webbrowser and MS HTML Library. Frames? Please help
- From: Mike2
- Re: VB Webbrowser and MS HTML Library. Frames? Please help
- From: Igor Tandetnik
- Re: VB Webbrowser and MS HTML Library. Frames? Please help
- From: Mike2
- VB Webbrowser and MS HTML Library. Frames? Please help
- Prev by Date: Re: VB Webbrowser and MS HTML Library. Frames? Please help
- Next by Date: Re: VB Webbrowser and MS HTML Library. Frames? Please help
- Previous by thread: Re: VB Webbrowser and MS HTML Library. Frames? Please help
- Next by thread: Re: VB Webbrowser and MS HTML Library. Frames? Please help
- Index(es):