Change Title of Javascript Alert [duplicate]

You can’t, this is determined by the browser, for the user’s safety and security. For example you can’t make it say “Virus detected” with a message of “Would you like to quarantine it now?”…at least not as an alert().

There are plenty of JavaScript Modal Dialogs out there though, that are far more customizable than alert().

Leave a Comment