javascript - Attaching mouse events at the window object does not work in Internet Explorer 8 -


Oh, nobody knows why Internet Explorer (8) is not running window related events?

  attachEvent ("onmousedown", function () {warning ("here")}); // does not work onmouseup = function () {warning ("2 here")}; // guess?   

Of course, I do not even have to say that it works on Firefox, Opera and Chrome

  addEventListener (" Mussoodown ", function () {warnings (" here "}}, false) permauses = function () {warning (" here 2 ")}; 
" post -Text "itemprop =" text ">

Try to attach it to the document

Comments