select body from dom 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