How i can get keydown event on iframe?
You need to access the document of the iframe which is through the ContentWindow object
$(document.getElementById('IFrameId').contentWindow.document).keydown(function(){ alert('Key down!'); });
Make sure you bind the event after the frame has loaded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With