alert message

R

reneecccwest

alert("Please choose your favoriate");

Is there any way I can customize the alert message box and text?

thanks,
s/RC
 
M

Michael Winter

alert("Please choose your favoriate");

Is there any way I can customize the alert message box and text?

Change the string? :)

You can only specify what text is shown, nothing else. The icons, dialog
title, button text, etc. are set by the browser, only.

Mike
 
R

reneeccc west

but I saw a customized alert message box on somehwere
It is nicely changed the icons, dialog title, button text, and box color
and text format)

man.. I cannot remember the link..
 
W

William Morris

What you saw was probably simply a window.open(... command pointing to a
webpage with all the customizations you talk about.

- Wm
 
J

Joakim Braun

reneecccwest said:
alert("Please choose your favoriate");

Is there any way I can customize the alert message box and text?

thanks,
s/RC

If compatibility isn't an issue, IE has showModalDialog().

Joakim Braun
 
R

reneeccc west

that might be a smiliar way of customizing an alert box using
window.open instad of alert.
let me try that way too.
thanks,
 
W

William Morris

If you don't mind programming strictly for IE5.5 and higher, take a look
around MSDN for the showModalDialog method.
 
R

reneeccc west

Sorry for the confusion.
One of the contents that I was asking about text is the text format
(such as color, size, etc), not chaning string.
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top