Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
How to pass variable from content script to injected script and after execution pass variable from injected to content script?

In my chrome extension I need to pass a variable to the injected script before execution. This is important because the variable that the user is inputting in the chrome extension is needed to run the injected script. When the injected script has finished it should pass one variable to the content script. I´ve tried to find answers on the internet for so long but nothing helped me. I tried local storage, sendRequest, addEventListener and so on. So I want to know if there is a way for me to do that? If so I would appreciate it if you could give me an example and/or an article.

Note: I found quite similiar question here on stackoverflow but nothing helped me for my problem.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!