reference body js 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