Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

91
Visualizações
Alert an array in javascript and make it copy/pasteable

On JavaScript, I've got an array of multiple variables: archive. First, I would like the page to display this table by skipping rows at each value of the table. Second, I want the alert to be "copiable" by the user. I achieved the first part that looks like that. https://i.stack.imgur.com/7Xtfh.png

However, it appears that the line : var archive = archive.join("\n") blocks the copy feature of the alert.

My question is : is there a way to skip a line between values in an array AND makes it copiable by the user. (all of this in an alert javascript function).

Thanks in advance ! (if you need the code part of the archive array, let me know)

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda