Advertisement
martyychang

Inserting consecutive blank spaces using JavaScript

Mar 25th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var space = document.createElement("span");
  2. space.innerHTML = " ";
  3.  
  4. updatesCell.appendChild(space.cloneNode(true));
  5. updatesCell.appendChild(space.cloneNode(true));
  6. updatesCell.appendChild(space.cloneNode(true));
  7. updatesCell.appendChild(document.createTextNode("|"));
  8. updatesCell.appendChild(space.cloneNode(true));
  9. updatesCell.appendChild(space.cloneNode(true));
  10. updatesCell.appendChild(space.cloneNode(true));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement