Re: capturing load events

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 UTC