Build your modal with pure JavaScript

<script src=""></script>
<script src=""></script>
<link rel="stylesheet" href="" type="text/css" />

<jsuites-modal title="Webcomponent Modal" closed="true" width="600" height="480">
This is an example how to create a modal based on the custom HTML javascript modal.

<input type='button' value='Open the modal'
    onclick="document.querySelector('jsuites-modal')" class='plain'>

document.querySelector('jsuites-modal').addEventListener('onopen', function() {
    console.log('Modal is open');
document.querySelector('jsuites-modal').addEventListener('onclose', function() {
    console.log('Modal is closed');

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!