Top "Focus" questions

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

Setting focus to a textbox when a function is called

I currently have a textbox in my aspx: <input type="text" id="myTextbox" value="" /> I was wondering if …

javascript focus html-input
Mobile Safari Autofocus text field

In Mobile Safari I am unable to focus onto a text field after setting a delay period. I'm attaching some …

javascript focus mobile-safari autofocus
Selecting text on focus using jQuery not working in Safari and Chrome

I have the following jQuery code (similar to this question) that works in Firefox and IE, but fails (no errors, …

jquery select safari focus google-chrome
How do you set a focus on Textfield in Swing?

I have created one form using Swing in Java.In the form I have used one textfield on which I …

java swing focus
WPF: How to programmatically remove focus from a TextBox

I want to add a simple (at least I thought it was) behaviour to my WPF TextBox. When the user …

wpf textbox focus
How to set Z-order of a Control using WinForms

I'm writing a custom TextBox that upon gaining focus changes its border style. As adding a border causes the control …

c# winforms textbox focus z-order
How to remove placeholder on focus

I made this simple function to add placeholder in browsers that do not support it: DEMO The question is: How …

javascript jquery focus placeholder
Enable :focus only on keyboard use (or tab press)

I want to disable :focus when it's not needed because I don't like how my navigation looks when the focus …

css focus
Android:To set an item as selected when the ListView opens?

An activity has a Button and a ListView. Initially, only the Button is visible. When the button is pressed, the …

android android-listview focus listviewitem
WPF-MVVM: Setting UI control focus from ViewModel

What is a good practice of setting control focus in MVVM architecture. The way I envision it, is with a …

c# .net wpf mvvm focus