Could someone please assist me with centering my JavaScript pop up on the screen? Currently, when I scroll down and activate the onclick popup, it appears at the top of the page, out of view. How can I ensure that the popup appears in the center of the screen regardless of how far I've scrolled?
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">