This is my 1st attempt at a Chrome Extension. What I want to accomplish is to call a global javaScript function with arguments from my extension (content.js) which exists in the web app, in the tab. I would be making multiple calls to the function with different arguments based on the interaction with the extension. The extension is a form-based auditing tool.
When the submit button is clicked, a function getTestValues() is called in my content.js
SUBMIT_BUTTON.onclick = evt => getTestValues();
Within getTestValues() I want to call the global JS function with arguments, pixelAudit.staticPixels([arg1],[arg2])
pixelAudit.staticPixels(statusSelVal, outputModeVal);
I’m having issues finding much info on this? There is a ton for V2 but not much for V3. Is it even possible to do this? Any info, advice, or links are much appreciated.
Thank you!