Let's see a simple HTML code for Popup div with disabled background. On clicking a particular link it will open a popup div with desire information, it can also be used as popup window. Below example shows following features -
- Onclick opens a popup div with disabled background
- Close popup div using escape button
- Opens popup div exactly at the center of the screen
- Opacity can be controlled within
Below is the tested code, directly you can save it and see the output.