I have a index.html file which was a button. I have a modal.html file which has a custom modal built. I want to onclick
event render modal.html inside index.html and close it normally. Can anyone help me with the pure Javascript function?
index.html below example
<div id="modal-container">
// here I want to load content from modal.html
</div>
modal.html
<div>
//here is modal content
</div>