chrome extension: how to send ‘keydown’ event to page’s input?
Your code is not working because jQuery’s keydown() method does not actually trigger a “real” keydown event. Instead, jQuery looks up the “bound” event handlers in jQuery.cache, and calls the corresponding functions. Since your content script’s jQuery object differs from the page’s jQuery object, invoking .keydown() doesn’t cause any action. In your case, I suggest … Read more