0

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");
            }
Cœur
  • 37,241
  • 25
  • 195
  • 267
Itachi Sama
  • 886
  • 1
  • 6
  • 18
  • @Jack I see great use cases for touch enabled devices. – Halcyon Aug 11 '14 at 13:41
  • 2
    If you want to learn about the different ways of attaching event handlers, I recommend to read these articles: http://www.quirksmode.org/js/introevents.html – Felix Kling Aug 11 '14 at 13:44

0 Answers0