Home › Forums › JavaScript › Select element class (pure Javascript) – is this correct? › Reply To: Select element class (pure Javascript) – is this correct?
September 19, 2013 at 7:32 am
#150584
whatsoever
Participant
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+