When a user clicks on a button, I want to enable an overlay. However, when the user minimizes the screen, the overlay does not cover the full page and buttons remain clickable. I have tried setting the screen.height
and screen.width
for the overlay div using the id1
, but once the screen is minimized to a certain level, the buttons are visible again.
document.getElementById("id1").style.height=screen.height;
document.getElementById("id1").style.width=screen.width;
My goal is to have the overlay display over the entire web page without any buttons being accessible.