Can we change the title of alert box displayed through Javascript?

G

geevaa

Hi All,

Using javascript i am displaying an alert...
Is there is a way to change the title of the alert box displayed
through Javascript

Here is my simple javascript code
<script type = "text/javascript">
alert('Hi All !!!')
</script>

When I run the above code I can see an alert box with the content "Hi
All" ...
But the title of the alert box displayed in firefox is "The page at
http://localhost says"...


Is there is a way to change this text to my own coustomized text..?

Is there is any thing a client side programmer had got to do with this
title text..?

Is there is a way to change the cursor pointer to cursor hand when the
user moves his pointer on the ok button on the alert box ..?

Thanks in advance..
 
J

Jeremy J Starcher

Hi All,

Using javascript i am displaying an alert...
Is there is a way to change the title of the alert box displayed through
Javascript

Here is my simple javascript code
<script type = "text/javascript">
alert('Hi All !!!')
</script>

When I run the above code I can see an alert box with the content "Hi
All" ...
But the title of the alert box displayed in firefox is "The page at
http://localhost says"...


Is there is a way to change this text to my own coustomized text..?

No UA that I know of would allow that to be changed. It is an important
part of the JavaScript security model.
Is there is any thing a client side programmer had got to do with this
title text..?

Again no.
Is there is a way to change the cursor pointer to cursor hand when the
user moves his pointer on the ok button on the alert box ..?

The alert box is not a Javascript function, it is provided by the hosting
user agent. The hosting UA doesn't even have to display an 'OK' button
and may, in fact, provide others. (IIRC, Opera offers a 'Stop running
all javascript on this page' type option as well.)
 
G

geevaa

Thanks for Your help Jeremy J Starcher.

No UA that I know of would allow that to be changed. It is an important
part of the JavaScript security model.




Again no.




The alert box is not a Javascript function, it is provided by the hosting
user agent. The hosting UA doesn't even have to display an 'OK' button
and may, in fact, provide others. (IIRC, Opera offers a 'Stop running
all javascript on this page' type option as well.)
 
C

Captain Paralytic

Hi All,

Using javascript i am displaying an alert...
Is there is a way to change the title of the alert box displayed
through Javascript

Here is my simple javascript code
<script type = "text/javascript">
alert('Hi All !!!')
</script>

When I run the above code I can see an alert box with the content "Hi
All" ...
But the title of the alert box displayed in firefox is "The page athttp://localhostsays"...

Is there is a way to change this text to my own coustomized text..?

Is there is any thing a client side programmer had got to do with this
title text..?

Is there is a way to change the cursor pointer to cursor hand when the
user moves his pointer on the ok button on the alert box ..?

Thanks in advance..

Use a popup DIV instead. You can make it say anything you like then.
e.g.
http://www.dynamicdrive.com/dynamicindex11/abox2.htm
 

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
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top