I am particularly interested in simulating arrow keys.
Although there are many ways to simulate keys, like in this Keydown Simulation in Chrome fires normally but not the correct key
It doesn't work if it is on a iframe
I am particularly interested in simulating arrow keys.
Although there are many ways to simulate keys, like in this Keydown Simulation in Chrome fires normally but not the correct key
It doesn't work if it is on a iframe
Imagine the following scenario.
This sort of scenario is why what you're trying to do is impossible.
The same origin policy will prevent it.
if you can modify the html from the page in the iframe you can use this what is called cross document messaging. http://caniuse.com/#feat=x-doc-messaging you would fire an event from the top frame and the iframe page would recive the event and interpret the outpout and fire an event (ie key stroke inside your frame).
If you are looking for this to work on older browsers there is a jquery pluing that will work with newer and older browsers: http://benalman.com/projects/jquery-postmessage-plugin/