JarekZ Posted May 1, 2020 Posted May 1, 2020 hello how to set focus in unihtmlframe on the field <input id = "aaa" type = "numeric" /> Quote
Sherzod Posted May 4, 2020 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
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.