Cross Sign Pictures, Images and Stock Photos - across sign
AxonBody 3 buttons
30,000+ people are already reading weekly updates on recent archaeological discoveries and artifacts being found. Don’t miss new evidence supporting the biblical accounts – JOIN NOW… absolutely free!
const mylist = ['first', 'second', 'third', 'fourth', 'fifth'] const frag = document.createDocumentFragment(); for (let i = 0, listLen = mylist.length; i < listLen; i++) { let button = document.createElement('input'); button.type = 'button' button.id = `b${i + 1}`; button.value = mylist[Math.floor(Math.random() * listLen)] frag.appendChild(button); } document.body.appendChild(frag);
var list = ['first', 'second', 'third', 'fourth', 'fifth'] for (var i = 0; i < 100; i++) { var btn = document.createElement('button') var random = Math.floor(Math.random() * list.length) btn.textContent = list[random] document.body.appendChild(btn) }