According to spec, only the BODY and FRAMESET elements provide an \"onload\" event to attach to, but I would like to know when a dynamically-create
BODY
FRAMESET
Can you no do a document.getElementById('newElementId'); and see if that returns true. If not, like you say, wait 100ms and try again?
document.getElementById('newElementId');