change javascript messagebox icon

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
greedyisg00d
Forum Commoner
Posts: 42
Joined: Thu Feb 12, 2009 2:48 am

change javascript messagebox icon

Post by greedyisg00d »

Hi is it possible to change the javascript messagebox exclamation icon to information icon or any other? Sample codes is much appreciated. Thanks
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: change javascript messagebox icon

Post by JAB Creations »

No, that's up to the browser in question. At best you can use \n to create a new line though it must be within quotes.

Code: Select all

alert('This is line 1.\nThis is line 2.');
Post Reply