How to append text to a div element? June 16, 2023 by Tarik Try this: var div = document.getElementById('divID'); div.innerHTML += 'Extra stuff';