I want to assign a keydown event handler to an iframe. Something similar to the pure JS:
document.getElementById('iframe_id').contentWindow.addEventListener('keydown',funcName, true);
I tried:
$(document.getElementById('iframe_id').contentWindow).keydown( function() {
// my func
});
But it does not work.. Please help!