display a dialog in javascript
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Danetall_Clifford
Posted On:   Friday, May 3, 2002 09:42 AM

I am interested in displaying a dialog box similar to an alert using javascript in my page.I need this to display the message returned from my servlet on the webpage depending on the nature of the message, I mean a good one or a bad one like an error.Could someone help me.

Thanks

Re: display a dialog in javascript

Posted By:   s_g  
Posted On:   Friday, May 3, 2002 01:23 PM

use alert command to display.


ex: alert("Message"+abc);
where abc is the variable in javascript. like your message.


if you want to ask a question to user then use confirm("do you want to close this window");


Hope this will help you.
About | Sitemap | Contact