I kinda got used to using this sample method to fire functions.. I need advices on which method should I more likely use and why..
var Div    = document.getElementById("Div");
            newDivX.onClick = function()
            {
                alert("done");
            }
 
    