document.addEventListener('DOMContentLoaded', function() { document.querySelector('.block').insertAdjacentHTML('afterEnd', html) });