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

287
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
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