Skip to content

Implementation of a modal window in a generic web page

Notifications You must be signed in to change notification settings

msgaspar/modal-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modal window

This is an implementation of modal window in a generic web page, made with the objective of studying and learning how to manipulate CSS classes using JavaScript.

Functions were created to open and close the modal window by removing and adding a 'hidden' CSS class from the modal window element. An event listener was also included so that the modal window is closed when the Escape key is pressed.

This exercise was part of the JavaScript course taught by Jonas Schmedtmann.

Demo

Try it out here