Delete HTML after click

Hello!
Could I add a html element on full screen and then delete it, when html button was clicked?

Hi @pekarnik,

Yes sure, on your HTML element click handler you can do the following:

element.addEventListener('click', function(){
   this.parentNode.removeChild(this);
}, false);
1 Like

Thank you!