W3C home > Mailing lists > Public > public-webapi@w3.org > December 2006

Re: capturing load events

From: Shadow2531 <shadow2531@gmail.com>
Date: Sat, 30 Dec 2006 06:32:18 -0500
Message-ID: <6b9c91b20612300332y5bea07ebmc27ce03b4d6a27e8@mail.gmail.com>
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>
Cc: "Hallvord R. M. Steen" <hallvord@opera.com>, public-webapi@w3.org, "Joao Eiras" <joao.eiras@gmail.com>

On 12/29/06, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:
> * Shadow2531 wrote:
> >[...]
>
> Try this fragment...

Thanks

Adressing the window + 'true' part first:

<pre id='r'>&#xa;</pre>
<script>
function trace(s)
{document.getElementById('r').firstChild.nodeValue+=s+"\n";}
window.addEventListener('load',function(e){
var t=e.target;
if(window.opera&&t==document.body){t=document;}
trace("win cap ("+e.eventPhase+") ("+t+")");},true);
</script>
<p><img alt='' src='http://www.w3.org/Icons/valid-xhtml10' /></p>

Given that markup,  does Opera produce the desired result?

-- 
burnout426
Received on Saturday, 30 December 2006 11:32:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:56 GMT