|
|
|
date: Tue, 23 Oct 2007 00:30:17 -0700,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
Re: How to catch onload event from C++?
What I want is to execute some code at the same time when <body>'s
onload is execute, but not after the page is fully loaded. So my code
executes before any other script code on page.
On Oct 23, 7:45 pm, "Igor Tandetnik" wrote:
> wrote in message
>
> news:1193124617.059662.145500@q3g2000prf.googlegroups.com
>
> > I am looking for a way to catch body tag'sonloadevent from my C++
> > code. I see some post suggesting to sink the event from
> > OnDocumentComplete method, but it looks like sometimes theonload
> > event will fire before OnDocumentComplete comes.
>
> I'm not sure I understand. Why do you want to catchonload? If your goal
> is to determine when the page is fully loaded, just handle
> DocumentComplete. What exactly are you trying to do?
> --
> 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
date: Fri, 02 Nov 2007 07:16:24 -0000
author: unknown
Re: How to catch onload event from C++?
Yes. I want to execute some code from my hosting program, at the
moment that the page loaded but before other script started. I think
the similar place is when <body>'s onload executes.
On Nov 2, 8:10 pm, "Igor Tandetnik" wrote:
> wrote in message
>
> news:1193987784.138728.259100@q5g2000prf.googlegroups.com
>
> > What I want is to execute some code at the same time when <body>'s
> > onload is execute, but not after the page is fully loaded. So my code
> > executes before any other script code on page.
>
> What do you plan to do for a page like this?
>
> <html>
> <body onload="alert('in onload');">
>
> <script>
> alert('I run before onload');
> document.write('Generated by script<br>');
> </script>
>
> Hello, world
> </body>
> </html>
>
> --
> 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
date: Sun, 04 Nov 2007 23:47:40 -0800
author: unknown
|
|