Hi !
I work on a mozilla extension which must analyse the html source. So
my XUL file contains that:

<script type="application/x-javascript">        
        window.addEventListener("load",scanOnload,true);
</script>

scanOnload is a javascript function which is called on every loading
frame and i want to scan the main window only, so my js file contains
that :
function scanOnload()
{
        if(window.self == window.top)
                var val = mafct();
}

The problem is that scanOnLoad is called on each frame but window.self
is not corresponding to a frame but to the current tab. In this way
window.top.frame.length give the number of tab.


Where is my mistake ? I'm lost, please help me ! snif :'(
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to