Page 1 of 1

change javascript messagebox icon

Posted: Sun Mar 22, 2009 4:41 am
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

Re: change javascript messagebox icon

Posted: Mon Mar 23, 2009 6:16 pm
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.');