I am writing an extension, made a menu to it in which the user enters some data. It is necessary to make it so that by clicking on the button (in the extension menu) these same data would be placed on the page I needed. 
Here is the manifest and HTML:
{ "manifest_version": 2, "version": "1.3", "description": "", "browser_action": { "default_popup": "content/popup.html" }, "content_scripts": [{ "matches": ["https://google.com/*"], "js": ["content/content.js"], "css": ["content/qq.css"], "run_at": "document_end" }] } <head> <script src="content/background.js"></script> </head> <body> <input type="text" id="text"> <input type="button" id="btnForBalance" value="Send"> </body It turns out that I need to send the data entered into the field with the send button from a file that works only from the extension menu to the file that will insert this data on the page I need. How to do it?
Help, because if I put the code that makes it into my js file, then it tries to take this data from the input on the page, and not from the extension menu.
