Text color change for alert message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 11:58 PM
Is it possible to change some part of text's color shown using alert message in catalog client script? like
alert("If you choose category as personal laptop, then you have to attach <font color='red'>email approval from your manager</font> with this request.");
I want only "email approval from your manager" in red color and rest will be as standard one.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2019 12:00 AM
Hi
Please refer the below thread-
Regards,
Omkar Mone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2019 12:01 AM
Hi
go through below link
https://stackoverflow.com/questions/7853130/how-to-change-the-style-of-alert-box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2019 12:26 AM
No that is not the requirment. Only color of some part of whole alert message to be changed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2019 12:42 AM
you can not do that by using alert.
if you want then you can try to use Sweet alert JS .
adding link here for further details.