how to exclude a specefic tagname from a javascript query search
snippet in javascript

how to exclude a specefic tagname from a javascript query search

user9954

var elems = document.querySelectorAll("body > *:not()");
//tag will go inside the not function like so:
var elems = document.querySelectorAll("body > *:not(img)");