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

397
Vistas
How do I add line break to .textContent?

I have checked multiple other questions and none of them seemed to work. And no, I would not like to use .innerHTML because that would make it not work. Heres my code:

generation.textContent=
 "<!DOCTYPE html>X"+
 "<html>"+
  "<head>"+
   "<style>"+
    cinput+
   "<\/style>"+
  "<\/head>"+
  "<body>"+
   hinput+
   "<script>"+
    jinput+
   "<\/script>"+
  "<\/body>"+
 "<\/html>";

After each plus sign/line there needs to be a linebreak.

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