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
<div id="generate"> $("#generate").attr('tabindex',-1).focus(function () { //do stuff });
Comments
Post a Comment