Top "Focus" questions

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

How to simulate a click to make the current input lose its focus with JavaScript

I have an input which at some points happens to have the focus. If the user click in the "background" …

javascript focus yui
AutoPostback with TextBox loses focus

A TextBox is set to AutoPostback as changing the value should cause a number of (display-only) fields to be recalculated …

asp.net textbox focus autopostback
Edit Text in ListActivity ListView loses focus when keyboard comes up

I have searched and searched for an answer to this question and everything that looked like an answer has not …

android listview focus android-edittext listactivity
How to remove focus from activeElement when changing tabs (onfocus/onblur)?

I'm trying to remove focus from a (jQuery Mobile) text input when a user switches tabs on desktop. While I …

javascript jquery tabs focus onblur
Bring a component on a JPanel to front (Java)

In VB, you can use zOrder. In .Net, it's .SetChildIndex. Before you ask, no I'm not using a layout manager …

java swing focus actionlistener
Vue - using refs to focus an element target

When span class="before-click" is clicked, I want it hidden, and input class="after-click" show up instead. And the showed …

javascript dom vue.js focus refs
JavaFX 2: How to focus a table row programmatically?

I am trying to select/focus a row of a TableView programmatically. I can select a row, but it is …

java focus javafx-2 tableview
how to trigger focus event on a textbox using javascript?

How to trigger focus event on a textbox using javascript? For example in jQuery we can trigger the focus event …

javascript focus eventtrigger
EditText loses focus when keyboard appears; requires touching twice to edit

I have been designing an application which holds an expandable list. At the end of every list, an empty EditText …

android focus android-edittext
jQuery Stop .blur() event when clicking "submit" button

I am building a small landing page with a simple demo e-mail signup form. I want to have the form …

event-handling focus jquery blur