I am writing an application on Android TV and Focus does not work in Webview on IFRAME. Help. The fact is that this is not a touch device and without a mouse, control is exercised from the console by keycode 37 38 39 40 that is, the mouse is excluded, it selects only the native elements on the page

    1 answer 1

    function setFocusThickboxIframe() { var iframe = $("#TB_iframeContent")[0]; iframe.contentWindow.focus(); } $(document).ready(function(){ $("#id_cmd_open").click(function(){ /* run thickbox code here to open lightbox, like tb_show("google this!", "http://www.google.com"); */ setTimeout(setFocusThickboxIframe, 100); return false; }); }); 

    I found the answer myself