String.prototype.blink()

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

Os exemplos abaixo usam métodos do objeto String para alterar a formatação de uma string:

js
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 Language Specification
# sec-string.prototype.blink

Compatibilidade com navegadores

BCD tables only load in the browser

Veja também