change the title bar of the JavaScript alert box

M

Matt

Is there a way to change the title bar of the JavaScript alert box??

If we do the following, it always show Internet Explorer in the title bar
of the box. What if I want to have title "My Title" on the alert box?

alert("Hello");

any ideas? thanks!!
 
I

ivanhoe

Is there a way to change the title bar of the JavaScript alert box??

i don't think so...at least no way to make it crossbrowser for sure...
If we do the following, it always show Internet Explorer in the title bar
of the box. What if I want to have title "My Title" on the alert box?

u can fake it, by opening new window instead of dialog...
 
G

Grant Wagner

Matt said:
Is there a way to change the title bar of the JavaScript alert box??

Sure, write your own browser, or take an open source browser like Mozilla,
modify the source code, recompile it and deploy it to people you would like
to have the special functionality.
 
K

kaeli

Is there a way to change the title bar of the JavaScript alert box??

If we do the following, it always show Internet Explorer in the title bar
of the box. What if I want to have title "My Title" on the alert box?

alert("Hello");

any ideas? thanks!!

For IE only, you can VBScript. VB has a message box function that does allow
the changing of the title text. You can see if VBScript (client-side)
supports MsgBox. Server-side will not, so make sure you run it client-side.
Note that I have no idea if that works; it's just a thought.

--
 

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,001
Messages
2,570,255
Members
46,853
Latest member
GeorgiaSta

Latest Threads

Top