Top "Focus" questions

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

Why isn't this textarea focusing with .focus()?

I have this code to focus a textarea when the user clicks on the "Reply" button: $('#reply_msg').live(…

javascript jquery focus textarea
How to make a Tkinter window jump to the front?

How do I get a Tkinter application to jump to the front? Currently, the window appears behind all my other …

python tkinter focus
Set focus on div contenteditable element

I have a <div contenteditable=true> where I define by a WYSIWYG some elements. For example <p&…

jquery focus contenteditable
Is it possible to change document.activeElement in JavaScript?

Is it possible to programmatically change the value of the document.activeElement property in JavaScript?

javascript focus
jQuery input value focus and blur

I have the following code so that when a users selects an input box the value will disappear, but the …

javascript jquery focus blur placeholder
jquery Setting cursor position in contenteditable div

The old version of the question is below, after researching more, I decided to rephrase the question. The problem as …

jquery focus contenteditable caret cursor-position
How to detect when a tab is focused or not in Chrome with Javascript?

I need to know if the user is currently viewing a tab or not in Google Chrome. I tried to …

javascript google-chrome focus
CSS: Change parent on focus of child

Let's say you have something like: <div class="parent"> <input class="childInput" type="text" /> <div …

javascript html css angularjs focus
Difference between focusable and focusableInTouchMode?

I want to know the actual difference between them... When should each be used, how should each be used, and …

android focus focusable