onbeforeload

Is it possible to detect the load of an applet?

Hello guys, I'm working on a Safari extension, and I'd like to detect when <applet>s are going to load (the onbeforeload event) on a page. However, there seems to be no such event for these. How should I do it? Transform all <applet> tags to <object> tags and then intercept their onbeforeload events? I think it would break the document...