- Get the Modal, the button of the Modal and the close button with getElementsByClassname and getElementById
- Add a click event listener using addEventListener, so when you click on the button, it will show the Modal.
- Create an openModal() function that changes the Modal display value to 'block'
- Add a click event listener for closing the Modal
- Create a closeModal() function that changes the Modal display value to 'none'
- Hide the Modal when clicking outside of the Modal window
-
Notifications
You must be signed in to change notification settings - Fork 10
rolandpakai/js_ws_beginner_homework_modal
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published