I've the following code :
var exit = document.getElementById("exit");
exit.onclick = function() {
"use strict";
document.getElementById("fadedDiv").style.display = "none" ;
};
But in the console I get the following error:
script.js:107 Uncaught TypeError: Cannot set property 'onclick' of null
Although it worked well with me before, but I don't know what the problem is.
plz help me