473,405 Members | 2,154 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.

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

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..
Jun 27 '08 #1
3 18203
On Thu, 24 Apr 2008 07:26:30 -0700, geevaa wrote:
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.)
>
Thanks in advance..
Jun 27 '08 #2
Thanks for Your help Jeremy J Starcher.

On Apr 24, 11:27 pm, Jeremy J Starcher <r3...@yahoo.comwrote:
On Thu, 24 Apr 2008 07:26:30 -0700, geevaa wrote:
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://localhostsays"...
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.)
Thanks in advance..
Jun 27 '08 #3
On 24 Apr, 14:26, geevaa <govivasa...@gmail.comwrote:
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
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: amy | last post by:
I have a text box, once the user input the value in, I do a validate to the input, if it's invalid, then do a alert and set focus to this control. The alert displays, but the set focus doesn't...
7
by: Roy Danon | last post by:
This question doesn't have anything to do with ASP, but I couldn't find any better place to ask it and i'm sure that if an answer exists someone here knows. So, the question is : When I use...
9
by: Harry | last post by:
Whats wrong with this? top.document.frmMain.tabMain.border = "1"; thanks
5
by: Masao Kishore | last post by:
How do you change the title within <title> and </title> by JS? Thank you for your help. M.K.
2
by: Treetop | last post by:
is there a way to change the <title> tag from a parent window from a child window in frames?
3
unicorn
by: unicorn | last post by:
how is that possible to change for instance <img title="my home" src="something> title style to make it look better, not that standard. I've seen that on couple of sites, but they were changing it...
1
by: sdunaka | last post by:
Hi all, please suggest, How I can change the title of javascript alert box and its back ground. Thanks in advance. Regards, D.Srinivasu
1
by: aRTx | last post by:
is there any way to do it with JavaScript <script language="JavaScript"> function PopupMe(){...
3
by: pradnya | last post by:
Does php has any function like 'alert()' in javascript ? I want a popup window to display a message in php.
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.