var elems = document.querySelectorAll('form,div,p'); for(var i=0; i