Relative Content

Tag Archive for javascripthtmlgoogle-chrome-extension

Selecting elements in Chrome Extension Popup

I’m working on a Google Chrome extension, and I have the HTML of the popup. I have an element called #switch, but document.querySelector(‘#switch’) isn’t working as a selector. It just returns null.