I am migrating some old Javascript in jQuery:
document.onkeyup = function (event) { if (!event) window.event; ... }
this code works in all major browsers. My jQuery code looks like this:
$(document).keyup = function (event) { ... }
however, this code does not work (the function never runs, at least in IE7 / 8). What for? How to fix?
source share