From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../web/api/globaleventhandlers/onfocus/index.html | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 files/pt-br/web/api/globaleventhandlers/onfocus/index.html (limited to 'files/pt-br/web/api/globaleventhandlers/onfocus') diff --git a/files/pt-br/web/api/globaleventhandlers/onfocus/index.html b/files/pt-br/web/api/globaleventhandlers/onfocus/index.html new file mode 100644 index 0000000000..3d27899ec3 --- /dev/null +++ b/files/pt-br/web/api/globaleventhandlers/onfocus/index.html @@ -0,0 +1,36 @@ +--- +title: GlobalEventHandlers.onfocus +slug: Web/API/GlobalEventHandlers/onfocus +translation_of: Web/API/GlobalEventHandlers/onfocus +--- +
{{ApiRef("HTML DOM")}}
+ +

A propriedade onfocus retorna o código de manipulador de eventos onFocus no elemento atual.

+ +

Sintaxe

+ +
element.onfocus = código de manipulação de eventos
+
+ +

Notas

+ +

O evento Focus é gerado quando o usuario define o foco no elemento.

+ +

Oposta à MSIE, em que quase todos os tipos de elementos recebem o evento focus, em navegadores Gecko quase todos os tipos de elementos não funcionam com este evento.

+ +

Especificações

+ + + + + + + + + + + + + + +
especificaçãosStatusComentario
{{SpecName('HTML WHATWG','webappapis.html#handler-onfocus','onfocus')}}{{Spec2('HTML WHATWG')}} 
-- cgit v1.2.3-54-g00ecf