I'm just starting to code an extension and I've encountered a problem. I'm using "getElementById" to see if this is the correct webpage. And I'm always no matter what the same result "null". Can someone help me, please? Here is the code:
var abc = document.getElementById('questionText');
console.log(abc);
if (abc == null) {
alert("not working");
} else {
alert("works");
}