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

280
Vistas
How to change certain part of alert message color and font in Java script

I have been trying to change certain part of text to bold and red color.

It's not working on Microsoft Edge.

My code:

alert("Hi how are you my friend");

Need to make text : "friend" as bold and red color

I tried this but does not work

alert("Hi how are you my <b> <background-color = red"> friend </b>);

Any solution is much appreciated

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

0

It is impossible i searched for this problem a lot, but you can make your window ,it isn't hard to find tutorials.

e.g https://www.delftstack.com/howto/javascript/javascript-customize-alert-box/

about 4 years ago · Juan Pablo Isaza Denunciar

0

Unless you use the dialog tag in jQuery to create the alert,it somehow has been styled in the jQuery theme already.... Styling JavaScript alert box on my end here I don't think it's possible

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