Opening and closing a window using click and keydown events.
You can open a window by clicking on any button, then you can close it by clicking on the close button, clicking outside the window or by hitting the Esc key on keyboard.
- HTML5
- CSS3
- JavaScript