Mozilla + Firefox extension development

Thursday, November 04, 2004

onload event only fires on top XUL element in Firefox

In Firefox, it seems that you can only hook up onload event handlers for the topmost element of a XUL file. onload event does not fire for the other elements in a XUL file or for any element in an overlay file.

Instead of,
    <someElement onload="...">

...
</someElement>
use,
    <someElement>

<script>...</script>
...
</someElement>

1 Comments:

  • Greetings from North Cack-A-Lacky! I enjoyed your thoughts, although I give Firefox even a little more credit than you do, I think ;) See what I mean here: ms internet explorer

    By Anonymous Anonymous, at 10:26 PM  

Post a Comment

<< Home