Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!