Create A Blank Html Space On The Fly Javascript
javascript
Solution
If you really just want to append a space character, use the following:
div.innerHTML += ' ';
or
div.innerHTML += ' ';
for the HTML entity.
Problem
How do I create a blank space on the fly using javascript? The following is not working for me.. ``` var blank = document.createElement(" "); div.appendChild(blank); ```