How to edit a JavaScript alert box title?


It’s not possible to edit a JavaScript alert box title due to security issues. Still, to edit an alert box to work it all web browsers, use custom JavaScript Modal Dialogs or jQuery plugins.

You can also use a custom alert box like Sweet Alert to get a custom alert box, with a title of your choice:

Updated on: 08-Jan-2020

5K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements