JSFiddle - React, Tailwind, and code Playground
HTML
<div><span>Test</span></div>
<div contenteditable>Edit Me</div>
<br><br>
Results that <a href="foo">have</a> focus method:<div id="result"></div>
<iframe src="http://google.com" ></iframe>
JavaScript
var focusAbles =$('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]');
var data = focusAbles.map(function() {
return(this.nodeName);
}).get().join(", ");
$("#result").append(data);