S
S
Sergey Shilovsky2018-04-17 19:34:27
JavaScript
Sergey Shilovsky, 2018-04-17 19:34:27

How to send message to injected script?

I am making for myself an extension for auto-completing fields on the site. The logic is as follows: when the page is loaded, a script is embedded that will change the fields, an account is selected in the popup extension, after which the popup should send data to the embedded script. Actually the question is: how to send and how to listen to messages between the extension and the embedded script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2018-04-17
@First_Spectr

postMessage. How do you read docs?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question