I am looking through the samples and I have got solution for focusing on dom element using tab.I am trying to focus on textarea which is on site, so i had used virtual Tab key press to find that particular textarea and its working correctly. But can anyone suggest how to directly focus on textarea. I also used excuteJavascript function but its not working.
Asked
Active
Viewed 274 times
0
-
You have some code? – kwoxer Mar 30 '17 at 12:15
-
Try calling the `focus` method on the element. – Mar 30 '17 at 12:17
-
i had tried this ,ExecuteJavaScript("function(){$('#textareaid').focus();}") – Gauri Mar 30 '17 at 12:33
-
asp.net web form or asp.net mvc view, which one? – Anil Mar 30 '17 at 13:44
-
add your code which you have tried? – Anil Mar 30 '17 at 13:49
1 Answers
1
DotNetBrowser DOM API provides two methods: DOMElement.Focus()
and DOMElement.Blur()
. This functionality allows you to request focus on particular HTML DOM element.

Anna Dolbina
- 1
- 1
- 8
- 9