Я считаю, что это может быть достигнуто, сначала удалив контент div из DOM, а затем добавив его обратно на кнопку, но я не уверен, как это сделать. Кто -нибудь может мне помочь? Спасибо! в коде ниже), а не в коде JS. Он также будет динамичным, постоянно изменяться. -code ">
Код: Выделить всё
function load_more() {
document.getElementById('content_div').style.display = 'block';
}< /code>
Content here...
Load More
More dynamic content here, including external images, scripts, and even iframes. These should NOT be automatically retrieved by the browser immediately on each page load, as they currently are with this code alone. Instead, they should only be fetched after the button above is pressed. So, if the user loads the page but does NOT click the button, no external resources will be retrieved by the browser.
Подробнее здесь: https://stackoverflow.com/questions/793 ... tton-click
Мобильная версия