Home > Net >  Control HTML/JS application with window.postMessage in C# component
Control HTML/JS application with window.postMessage in C# component

Time:02-10

Assume I have an HTML/JS component that is rendered inside the WebBrowser C# component (or another browser C# component). This component can be controlled by the window.postMessage() calls, exactly like the parent HTML page can control it in the iframe.

The question is: may I send postMessage's messages to the HTML/JS component from the C# program somehow?

CodePudding user response:

  •  Tags:  
  • Related