Top "Focus" questions

Focus indicates the component of the graphical user interface which is currently selected to receive input.

Is there a way to detect if a browser window is not currently active?

I have JavaScript that is doing activity periodically. When the user is not looking at the site (i.e., the …

javascript browser focus window
jQuery lose focus event

I'm trying to show up a container if a input field gets the focus and - that's the actual problem …

javascript jquery focus jquery-events
How can I set the focus (and display the keyboard) on my EditText programmatically

I have a layout which contains some views like this: <LinearLayout> <TextView...> <TextView...> <…

android focus android-edittext
Set element focus in angular way

After looking for examples of how set focus elements with angular, I saw that most of them use some variable …

angularjs focus setfocus
Setting focus on an HTML input box on page load

I'm trying to set the default focus on an input box when the page loads (example: google). My page is …

javascript html focus onload autofocus
Correct way to focus an element in Selenium WebDriver using Java

What's the equivalent of selenium.focus() for WebDriver? element.sendKeys(""); or new Actions(driver).moveToElement(element).perform(); I have tried …

java focus selenium-webdriver setfocus
How to remove the focus from a TextBox in WinForms?

I need to remove the focus from several TextBoxes. I tried using: textBox1.Focused = false; Its ReadOnly property value is …

c# .net winforms textbox focus
How do I set the focus to the first input element in an HTML form independent from the id?

Is there a simple way to set the focus (input cursor) of a web page on the first input element (…

javascript html forms focus
How to remove focus from input field in jQuery?

I am setting the focus on a certain input field when loading a page using the following line: $('#myInputID').…

jquery html focus
Set focus to field in dynamically loaded DIV

What is the proper method to set the focus to a specific field within a dynamically loaded DIV? $("#display").load("?…

jquery html focus setfocus