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

121
Views
Cannot read properties of null (reading 'addEventListener') in javascript chrome extensions

I am building chrome extensions using javascript. I have some struggles on addEventListeners. Kindly check the below code

var SpellCheck = document.getElementById('spellCheck')

SpellCheck.addEventListener('click', async () => {
  let [tab] = await chrome.tabs.query({
    active: true,
    currentWindow: true
  });

  var w = 600;
  var h = 550;
  var left = (screen.width / 2) - (w / 2);
  var top = (screen.height / 2) - (h / 2);

  chrome.windows.create({ 'url': 'onboarding.html', 'type': 'popup', 'width': w, 'height': h, 'left': left, 'top': top }, function (window) { });
});

but I got the below error please help me to reach out this issue. enter image description here

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!