I have prepared a Fiddle, please look into this.
https://jsfiddle.net/s7fxy8jp/
From the fiddle, would it be possible to blink normal cursor at the end of the text Element Z (script-only focusable) instead of a background color aqua.
HTML
<div tabindex="-1" id="scripted">Element Z (script-only focusable)</div>
<div id="test">Set Focus To Element Z</div>
CSS
div:focus {
background-color: Aqua;}
JavaScript
document.getElementById('test').onclick = function () {
document.getElementById('scripted').focus();};