Content-Length: 207020 | pFad | http://developer.mozilla.org/pt-BR/docs/Web/API/HTMLInputElement/select

HTMLInputElement.select() - APIs da Web | MDN

Esta página foi traduzida do inglês pela comunidade. Saiba mais e junte-se à comunidade MDN Web Docs.

View in English Always switch to English

HTMLInputElement.select()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since julho de 2015.

O método HTMLInputElement.select() seleciona todo o texto em um elemento <textarea> ou em um elemento <input> do tipo text.

Sintaxe

element.select()

Especificações

Specification
HTML
# dom-textarea/input-select

Compatibilidade com navegadores

Notas

Executar element.select() não irá necessariamente focar o input, por isso é frequentemente usado em conjunto com HTMLElement.focus().

Veja também









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/pt-BR/docs/Web/API/HTMLInputElement/select

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy