The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Select elements with class name test
Select first element with class name test
Select the body element
ALSO, Any way to select html,body together?
You can select html and body using document.querySelectorAll(‘html, body’). Keep in mind that it is supported on IE8+, Chrome 1+, FF3.5+, Opera 10+ and Safari 3.2+