This will either be amazingly simple or mind bendingly difficult but how do we get a JavaScript event listener started onload to see new elements created by JavaScript after the page is loaded (and not created by AJAX but by using createElement)?
- John
httpwebwitch
9:00 pm on Apr 28, 2008 (gmt 0)
this is, thankfully, of the amazingly simple variety. after you create the element, you can add an event listener to it by assigning a function to the "on something" property of the object.
var thing = createElement...
thing.onclick = function(){ //do something }
thing.onmouseover = function(){ // do something else }