Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda