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

234
Vistas
Is is possible to display <style> contents as a string?

I can display the contents of a function using functionName.toString()

Is is possible to display the contents of the <style></style> section?

Using XXX.toString(), like maybe: styleName.toString()? Or something else?

I can't figure out how to reference the <style> contents.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use the innerHTML or innerText property, just like any other DOM element.

document.querySelector("style").innerText

If you have multiple <style> elements you can give the one you want an ID and use that in the selector. If you want all of them, you can use document.querySelectorAll("style") and loop over them.

about 4 years ago · Juan Pablo Isaza Denunciar
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