JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- http://www.w3.org/QA/2002/04/valid-dtd-list.html -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<style>
    div:focus{background-color:cyan;}
</style>
<script type="text/javascript">
function refocus(delay){
    var currentactiveelement=document.activeElement;
    setTimeout(function(){ $(currentactiveelement).focus(); }, delay);
}
</script>
</head>
<body>
 <div id="div1" tabindex=1>Div 1 - click me to focus</div>
 <div id="div2" tabindex=2>Div 2 - click me to focus</div>
 <div id="div3" onmousedown="return false;">Div 3 - I just return false without jQuery</div>
 <div id="div4" onmousedown="refocus(1000); return false;">Div 4 - I store the document.activeElement and set a timeout to refocus it (1000ms), then return false</div>
 <div id="div5" onmousedown="refocus(1); return false;">Div 5 - I store the document.activeElement and set a timeout to refocus it (1ms), then return false</div>
</body>
</html>