PostMessage WM_KEYDOWN send multiply keys?
You can’t simulate keyboard input with PostMessage, at least not reliably use SendInput instead.
You can’t simulate keyboard input with PostMessage, at least not reliably use SendInput instead.
Is it broken? Well, sort of. I tried various ideas and couldn’t get the code in your jsFiddle to work. Looking at this MSDN Blog post, we find that postMessage only works between IFrames in older versions of IE, which has yet to be fixed for IE 11. That article links to a demo of … Read more
I was mistaken when I originally posted this answer: it doesn’t actually work in IE10. Apparently people have found this useful for other reasons so I’m leaving it up for posterity. Original answer below: Worth noting: the link in that answer you linked to states that postMessage isn’t cross origin for separate windows in IE8 … Read more
I’m sticking to the shared local data solution mentioned in the question using localStorage. It seems to be the best solution in terms of reliability, performance, and browser compatibility. localStorage is implemented in all modern browsers. The storage event fires when other tabs makes changes to localStorage. This is quite handy for communication purposes. References … Read more