daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. var items = document.createElement("ul");
  2. items.setAttribute("id","items");
  3. document.body.appendChild(items);
  4.  
  5. for(var i=0;i<5;i++){
  6.   var newil=document.createElement("li");
  7.   var newiltext=document.createTextNode("A new il "+i);
  8.   newil.appendChild(newiltext);
  9.   var items2 = document.getElementById('items');                
  10.   items2.appendChild(newil);
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top