Mozilla Focus



Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for. Md740 usb camera software. As the internet grows and changes, Firefox continues to focus on your right to privacy — we call it the Personal Data Promise: Take less.

The HTMLElement.focus() method sets focus on the specified element, if it can be focused. The focused element is the element which will receive keyboard and similar events by default. Merit dictionary free download.

Syntax

Parameters

optionsOptional
An optional object providing options to control aspects of the focusing process. This object may contain the following property:
preventScrollOptional
A Boolean value indicating whether or not the browser should scroll the document to bring the newly-focused element into view. A value of false for preventScroll (the default) means that the browser will scroll the element into view after focusing it. If preventScroll is set to true, no scrolling will occur.
Mozilla Focus

Examples

Focus on a text field

Mozilla Focus Browser

JavaScript

HTML

Result

Focus on a button

Focus

Focus with focusOption

JavaScript

HTML

Result

Mozilla Focus Download

Specifications

SpecificationStatusComment
HTML Living Standard
The definition of 'focus' in that specification.
Living Standard
HTML 5.1
The definition of 'focus' in that specification.
Recommendation
HTML5
The definition of 'focus' in that specification.
Recommendation
Document Object Model (DOM) Level 2 HTML Specification
The definition of 'focus' in that specification.
Obsolete
Document Object Model (DOM) Level 1 Specification
The definition of 'focus' in that specification.
Obsolete

Notes

Mozilla Focus For Pc

  • If you call HTMLElement.focus() from a mousedown event handler, you must call event.preventDefault() to keep the focus from leaving the HTMLElement
  • Behavior of the focus in relation to different HTML features like tabindex Paranoia agent voice actors. or shadow dom, which previously remained under-specified, were recently updated (as October of 2019). Checkout WHATWG blog for more info.

Focus

Download Firefox Focus Mozilla

Browser compatibility

BCD tables only load in the browser

See also

Focus
  • DOM method HTMLOrForeignElement.blur to remove the focus from an element.
  • document.activeElement to know which is the currently focused element.