JSFiddle - React, Tailwind, and code Playground

by Nenad Novakovic

JavaScript

var $elem = {
    html: document.documentElement || document.getElementsByTagName('html')[0],
    head: document.head || document.getElementsByTagName('head')[0],
    body: document.body || document.getElementsByTagName('body')[0]
};


window.onload = function () {
    console.log($elem.html + ' ' + $elem.head + ' ' + $elem.body);
};