JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<p>Hi this is a page.</p>
<p><button onclick='alert("LOL")'>LOL</button></p>
<p><a href='javascript:void(alert("Ow!"))'>Don't touch!</p>
</body>
JavaScript
document.onclick = function(){
color = Math.floor(Math.random()*0xffffff).toString(16);
while(color.length < 6)
color = "0" + color;
document.body.style.backgroundColor = "#" + color;
};