473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Basic questions about alert() and confirm()

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
6 1498
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andy Fish | last post by:
Hi, now I know what the alert() function does, but can anyone tell me where I can find the specification or standards for functions like alert() and confirm(). They don't seem to be part of...
7
by: Tasha's Dad | last post by:
A description of the problem: 1) Go to a page with various settings and a timeout (forces re-login if over 10 minutes) 2) Before the timeout, make some changes to settings. 3) Press a "reset to...
2
by: Hans | last post by:
Hi! I have an asp application where I use a lot of javascript for validations etc and as it is today I use alert, confirm and prompt dialogs. Now we are adding support for unicode and I have...
2
by: Little Pete | last post by:
I use a simple .js script to shuffle files on my computer to which I'd like to add alert and confirmation boxes. Unfortunately I haven't been able to figure out what object I need to create that...
1
by: Tom S | last post by:
I've used C# to register a javascript function in the PageLoad event of a web form page. My problem is that I can't seem to figure out how to call it. I've tried the following, all to no avail: ...
4
by: sonu | last post by:
How can we use alert and confirm method in asp.net application. i am working with application where i want to use confirm box before going for any operation. and same for alert box Sonu
6
by: den 2005 | last post by:
Hi everybody, Question 1: How do you set the values from server-side to a client-side control or how do you execute a javascript function without a button click event? Question 2: How do you...
2
by: LayneMitch via WebmasterKB.com | last post by:
Hello. This is a basic quiz. Only about 3 questions. I'm having issue with the answer key which stays on a certain value regardless of acknowledging that you have the correct answer for the...
7
by: rmurgia | last post by:
When a variable is created using Javascript, should it then be able to be read immediately using embedded VB code or does the submit command have to be entered or are the variables between...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.