javascript - how to focus on a div element in webview use code in android development -


i had question while try focus on div element in webview in android development. had set editable div element. however, no matter use webview.requestfocus() or document.getelementbyid('container').focus() or both, never works. want know how focus div element in webview.

when div loading event generated js. can set tab index attribute , give try

http://jsfiddle.net/qakgv/

<div id="generate">  $("#generate").attr('tabindex',-1).focus(function () {     //do stuff }); 

Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -