/JS-Modal

JS Modal popup.

Primary LanguageCSS

JS-Modal

Created with CodeSandbox

What is a Modal?

Its simply a popup box. When clicked on a button, a simple popup box will be triggered.

Here, we use JavaScript to create a modal popup.

button.addEventListener('click', () => {
  modal.style.display='block';
})

on clicking, a button, the modal popsup.