I'm creating a Pop-up using vanilla JavaScript. To inject the HTML I'm using innerHTML. If I try to get the style of the content of the Pop-up, it's giving me a blank text. Why??
Edited :
...
<div class="content" id="msg${this.id}">
</div>
</div>`;
body.innerHTML = popup;
}
minimize() {
let display = this.content.style.display;
console.log(display);
display = display == 'block' ? 'none' : 'block';
}