how to display the message box using javascript

Posted by Suvasinikamuni under JavaScript on 5/25/2010 | Views : 14148 | Status : [Member] | Replies : 3
hi,

i have taken a button, if i click on button the message should be displayed as successfully saved .
this i have to get in a message box using javascript . please help me out.

regards,
suvasini




Responses

Posted by: Vuyiswamb on: 5/25/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
You can do it this way

alert('successfully saved ');


but if you want to do this on the server side , you can do something like this


response.write("<script>alert('successfully saved ');</script>");



Thank you for posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Suvasinikamuni on: 5/25/2010 [Member] Starter

Up
0
Down
THANKS

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

Posted by: Rahulchd3112 on: 6/18/2010 [Member] Starter

Up
0
Down
write following code in your button's onclientclick

onClientClick="alert('Record Saved')"

http://howinaspnet.blogspot.com

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

Login to post response