2

I'm trying to build a web application that can send messages to any other tabs the user might have open. I can't figure out if this is even possible, let alone how to do it.

Does anyone have any experience with this postMessage API, for which online resources seem to be rather limited?

By the way, I know this sounds like some sort of awful spam plan, but in fact it's accessibility related-- I'm attempting to use speech-to-text to allow a user to control other web pages. It won't work as an extension because Chrome extensions presently cannot access the mic, at least not in the manner necessary for this idea.

Bergi
  • 630,263
  • 148
  • 957
  • 1,375
temporary_user_name
  • 35,956
  • 47
  • 141
  • 220
  • As far as I know, you need a reference to the other window to call postMessage, and I doubt you can get it running in a tab. Maybe if you somehow combined the extra privileges you get from the extension context and the features you have in a webpage (for example, you somehow message between your application and the extension, and you execute the postMessages at the extension level). – Vlad Ciobanu Aug 29 '13 at 12:17
  • That is my intention. – temporary_user_name Aug 29 '13 at 16:04
  • Possible duplicate of [window.postmessage() to communicate between applications in different tabs](http://stackoverflow.com/questions/25271243/window-postmessage-to-communicate-between-applications-in-different-tabs) – Paul Sweatte Jul 26 '16 at 20:11

0 Answers0