How to tell what code is touching an element

Is there an easy way to tell which function is modifying a given element? To oversimplify my problem, I have a div that is mysteriously being cleared out about a second after it gets populated. I have been trying to determine why it is getting cleared with no luck. The website is basically Perl, Mason, and Javascript. I’ve tried setting breakpoints using Firebug and the IE Development Toolbar, but in both tools, the debugger runs out of code to show before the problem occurs. I have no idea how to figure out what code is modifying my div. Any suggestions? Thanks!

In Firebug I see that you can select a page element and breakpoint on its removal.

If you first breakpoint on the the script that runs, you can then select the appropriate page element and set the breakpoint on it.