Deprecated
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
O método blink()
cria um elemento HTML <blink> que faz uma string piscar.
Aviso: A criação de textos que piscam é desaprovada por vários padrões de acessibilidade. O próprio elemento <blink>
não é padrão e está obsoleto!
Sintaxe
str.blink()
Valor retornado
Uma string contendo um elemento HTML <blink>.
Descrição
O método blink()
cria uma string dentro de uma tag <blink>
:
"<blink>str</blink>"
.
Exemplos
Usando blink()
Os exemplos abaixo usam métodos do objeto String para alterar a formatação de uma string:
var worldString = 'Olá, mundo';
console.log(worldString.blink()); // <blink>Olá, mundo</blink>
console.log(worldString.bold()); // <b>Olá, mundo</b>
console.log(worldString.italics()); // <i>Olá, mundo</i>
console.log(worldString.strike()); // <strike>Olá, mundo</strike>
Especificações
Specification |
---|
ECMAScript (ECMA-262) The definition of 'String.prototype.blink' in that specification. |
Navegadores compatíveis
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.