how to get the body element javascript code example
Example: reference body js
var body = document.getElementsByTagName("BODY")[0]; //bad way
document.body //good way
var body = document.getElementsByTagName("BODY")[0]; //bad way
document.body //good way