By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,608 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,608 IT Pros & Developers. It's quick & easy.

Basic questions about alert() and confirm()

P: n/a
I have some basic questions about alert() and confirm():

(1) Is it possible to customize the labels in the buttons, eg. put
"Yes" instead of "OK"?

(2) Is there a control over the text in the pop-up frame? I would like
to get rid of "Windows Internet Explorer" (IE) or "The page at
http://192.168.22.215:5555 says:" (Firefox) or replace it with
something meaningfull.

(BTW, the text in the frame in Firefox is not even true as the pop-up
does not originate in the server but locally).

I browsed through tens of sites but all I found is one-liners about
both functions. Well... maybe that's all that it is there...
Nov 28 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
On Nov 28, 3:29 pm, simplicity <stella_pig...@yahoo.cawrote:
I have some basic questions about alert() and confirm():

(1) Is it possible to customize the labels in the buttons, eg. put
"Yes" instead of "OK"?
Nope, thats not possible.
(2) Is there a control over the text in the pop-up frame? I would like
to get rid of "Windows Internet Explorer" (IE) or "The page athttp://192.168.22.215:5555says:" (Firefox) or replace it with
something meaningfull.
That is not again possible (security reasons). It used to be possible
with IE, not anymore.
>
(BTW, the text in the frame in Firefox is not even true as the pop-up
does not originate in the server but locally).

I browsed through tens of sites but all I found is one-liners about
both functions. Well... maybe that's all that it is there...
You might want to take a look at Javascript 'modal dialogs'.
http://www.webreference.com/js/column90/

--
Kailash Nadh | http://kailashnadh.name
Nov 28 '07 #2

P: n/a
Even though that is not possible.... you can try this

http://www.subimage.com/dhtml/subModal/

i used this thing so many places.... it works for everything... A
little bit of modification to this script and you will get all teh
controls you need...

Viv
Nov 28 '07 #3

P: n/a
On Nov 28, 9:29 am, simplicity <stella_pig...@yahoo.cawrote:
I have some basic questions about alert() and confirm():

(1) Is it possible to customize the labels in the buttons, eg. put
"Yes" instead of "OK"?

(2) Is there a control over the text in the pop-up frame? I would like
to get rid of "Windows Internet Explorer" (IE) or "The page athttp://192.168.22.215:5555says:" (Firefox) or replace it with
something meaningfull.

(BTW, the text in the frame in Firefox is not even true as the pop-up
does not originate in the server but locally).

I browsed through tens of sites but all I found is one-liners about
both functions. Well... maybe that's all that it is there...
It is not possible in Javscript, but if you learn VBScript you will
find that you can. You can also mix Javascript and VBScript to make a
custom page although it is not recomended.
Nov 28 '07 #4

P: n/a
On Nov 28, 10:35 am, Kailash Nadh <kailash.n...@gmail.comwrote:
>
You might want to take a look at Javascript 'modal dialogs'.
http://www.webreference.com/js/column90/
Too bad it is for IE only...
Nov 29 '07 #5

P: n/a
VivianAranha wrote:
Even though that is not possible.... you can try this

http://www.subimage.com/dhtml/subModal/

i used this thing so many places.... it works for everything... A
little bit of modification to this script and you will get all teh
controls you need...

Viv
I use the same sort of thing only it is also draggable.

Nov 29 '07 #6

P: n/a
On Nov 28, 11:29 pm, "Rick Brandt" <rickbran...@hotmail.comwrote:
VivianAranha wrote:
Even though that is not possible.... you can try this
http://www.subimage.com/dhtml/subModal/
i used this thing so many places.... it works for everything... A
little bit of modification to this script and you will get all teh
controls you need...
Viv

I use the same sort of thing only it is also draggable.
Is there a code available for download?
Nov 29 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.