JSFiddle - React, Tailwind, and code Playground
by jfriend00
HTML
<body>
<div id="thisIsDefinitelyNotUsedSomewhereElse" style="display: none;">true</div>
<div class="theRest">
this is the rest of the site
</div>
</body>
JavaScript
function myPrint() {
window.print();
}
function urlFinder() {
var isRedirect = document.getElementById('thisIsDefinitelyNotUsedSomewhereElse');
alert(isRedirect + " this isRedirect ");
}
window.onload=urlFinder;