DOM Level 2 Events, dvs brugen af addEventListener code example
Example: js addeventlistener
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});
var element=document.getElementById("some_id");
var listener=element.addEventListener('click',function(event){
});