--- title: focusout slug: Web/API/Element/focusout_event translation_of: Web/API/Element/focusout_event original_slug: Web/Events/focusout ---

O evento focusout é acionado assim que o elemento perde o foco. A principal diferença entre esse evento e o evento blur, é que esse ultimo não gera "borbulhas".

Informações Gerais

Especificação
DOM L3
Interface
{{domxref("FocusEvent")}}
Borbulha
Sim
Cancelável
Não
Alvo
Element
Ação Padrão
Nenhuma.

Propriedades

Property Type Description
target {{readonlyInline}} {{domxref("EventTarget")}} Event target losing focus.
type {{readonlyInline}} {{domxref("DOMString")}} The type of event.
bubbles {{readonlyInline}} {{jsxref("Boolean")}} Whether the event normally bubbles or not.
cancelable {{readonlyInline}} {{jsxref("Boolean")}} Whether the event is cancellable or not.
relatedTarget {{readonlyInline}} {{domxref("EventTarget")}} (DOM element) Event target receiving focus.

Compatibilidade com navegadores

{{CompatibilityTable}}

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatGeckoDesktop(52)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatGeckoMobile(52)}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}}

Eventos Relcionados