Nick LaMarca Nick LaMarca - 8 months ago 77
Javascript Question

Create A Blank Html Space On The Fly Javascript

How do I create a blank space on the fly using javascript?
The following is not working for me..

var blank = document.createElement(" ");


If you really just want to append a space character, use the following:

div.innerHTML += ' ';


div.innerHTML += ' ';

for the HTML entity.