document.body.insertAdjacentHTML('beforeend', '<input type="button" value = "button 1" id="b1" onclick="alert()">');