DOMNodeInsertedIntoDocument in non Backbase application

I know this isn't completely a Backbase related question. I hope you can still help me because I'm completely in the dark here...

I'm writing a application that's using Backbase. I'm very happy with it!
The login module is kind of separate because it's used to log into various applications. I choose to use the prototype Javascript Library instead of Backbase for the login module in order to keep it fast and light weight. Now there is one thing I can't figure out with prototype that is present in Backbase. The "DOMNodeInsertedIntoDocument" event. Of course I've looked at all kinds of documentation on DOM events, but nothing I do makes a node fire a event when the Ajax response is inserted into the page.

For short... The form response returns a div to the login page. I want to add a event to this div that gets fired ondomnodeinsertedintodocument.

* ondomnodeinsertedintodocument='jsEvent()' doesn't work
* ondomnodeinserted='jsEvent()' doesn't work
* Attaching a event to the node dynamically doesn't work obviously because the node doesn't exist yet when the document is created. I could create a dummy node and attatch the event to that one, but I want to perform specific tasks depending on the returned value (which is a message to the user).

Can anyone tell me how Backbase handles this? What functionality is used to make "event='DOMNodeInsertedIntoDocument'" work?

Thanks in advance!

non backbase application

Hi Bram,

There is an article about JavaScript Tutorial : DOM Events.
It is a good article to be read. It explains the events that are supported by some browser.

The url
http://www.howtocreate.co.uk/tutorials/javascript/domevents

Hope this helps,

Andys