Click to See Complete Forum and Search --> : Customized Message Box


jafar_kofahi
08-02-2004, 08:28 AM
how can i create a customized message box.. i tried my best but i couldnt..

my problem is :

i want to create a customized message box that i can decide the message title, message body, buttons names (e.g. ok,yes,cancel..etc)
and if i can put an icon..

i want it to work on all web browsers so i figured i should do it using Java script or HTML or DHTML , if you have any other suggestion plz tell me..

thanks .. with my regards

Jona
08-02-2004, 10:48 AM
You cannot do this through the built-in functions of JavaScript (e.g., the confirm, alert, or prompt functions); however, you can initialize a box with your own HTML located therein, and cause the box to appear with button images, which you could use in the same way as the built-in functions. If you use hotmail, you can see an example of this. You could also use popup windows which send information back to the parent window, though I wouldn't recommend this method as more and more people these days use popup blockers, and I personally would not prefer to have a popup than a JavaScript window.