JarekZ Posted May 1, 2020 Share Posted May 1, 2020 hello how to set focus in unihtmlframe on the field <input id = "aaa" type = "numeric" /> Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 4, 2020 Share Posted May 4, 2020 On 5/1/2020 at 3:32 PM, JarekZ said: how to set focus in unihtmlframe on the field <input id = "aaa" type = "numeric" /> Hello, You can try this: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniHTMLFrame1.JSInterface.JSCode('var edt='#1'.getEl().select("#aaa").elements[0]; if (edt) {edt.focus()};'); end; Quote Link to comment Share on other sites More sharing options...
JarekZ Posted May 5, 2020 Author Share Posted May 5, 2020 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.