Change the caption of alert message

Posted by Jpchoudhari under JavaScript on 11/14/2011 | Points: 10 | Views : 2370 | Status : [Member] | Replies : 3
Hi,

is there any way we can change the caption of alert message that comes as a result of javascritp:alert('hello')???

The page at www.google.co.in Says:

Kind Regards,
Jay



Responses

Posted by: Ndebata on: 11/14/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Jay,

You can not change the caption of alert box though this can implemented using VBScript but limited to IE only.
The better way I can suggest to use JQuery or Ajax Popup extender control to create a custom messagebox.

Thanks,
Debata

Jpchoudhari, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 11/15/2011 [Member] Starter | Points: 25

Up
0
Down
As far i know you can not change default caption but there is option through jquery you can change this. link given below to change how it happen

http://sandeep-chourasia.blogspot.com/2011/11/change-caption-of-alert-box.html

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Jpchoudhari, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jpchoudhari on: 11/15/2011 [Member] Starter | Points: 25

Up
0
Down
thanx 2 both of you for reply

Kind Regards,
Jay

Jpchoudhari, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response