Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [input-focus]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13 votes
10 answers
5k views

Drawbacks of auto "focusing" on a web page's text field (JavaScript)

Do you guys know any drawback of focusing on a text field on a web page ? It's pretty useful when you know users will use this text field more than others (like on the google homepage), but it's a bit ...
Julien's user avatar
  • 233
101 votes
12 answers
34k views

Removing placeholder text on focus

Chrome, Safari, and Firefox 15+ remove the placeholder text after the users first key press in the text input field. Opera, IE, and Firefox 14 and below remove placeholder text immediately after ...
webvitaly's user avatar
  • 3,912
21 votes
3 answers
2k views

Are there any valid reasons for an application to steal focus?

This comment on another UX.Stackexchange question: that's not to force you to read it, it's to ensure that websites don't pop up the window as soon as your mouse pointer goes to click something in ...
Tobias Kienzler's user avatar
11 votes
5 answers
2k views

What element should have the focus after a search?

A website has its own search (there are reasons for this; no, a Google site search will not do). So, after a search is executed, for accessibility what element should have the focus? The number of ...
GHolmes's user avatar
  • 213
7 votes
3 answers
2k views

Which button should get the focus at delete dialogs?

I thought that most destructive actions should be avoided from default actions. But when a delete dialog comes, I see that most Windows applications (even the OS), by default, set the focus at "...
dbalboa's user avatar
  • 485
4 votes
2 answers
1k views

What happens when the focus rectangle isn't clear?

I get a lot of clients that comment that the focus box isn't obvious enough in some browsers. Is it common and good practice to make it more obvious? If so, how exactly do people do this?
KemanoThief's user avatar
3 votes
2 answers
293 views

How best to handle a popup gaining focus in the middle of the user typing?

Often I'll set some process off, then change focus to another program and be typing away in a textbox (for example), when the first thing pops up into view, maybe with a Yes / No box which I'd then ...
George Duckett's user avatar