I'm attempting to change the CSS of a display:none to a display:block using the following command:
getElementById is a function (not an object where every element with an ID exists as a property).
You need to call it with
() and not access properties with
Make sure you open the Developer Tools in your browser and read the console. It would have told you that
document.getElementById["pop-up"] was undefined.