Solved

Change caption of alert box

Posted on 2003-11-20
5
222 Views
Last Modified: 2012-05-04
Is it possible to change the caption of an alert box in ASP from 'Microsoft Interner Explorer' to some other caption like 'My application error'?
0
Comment
Question by:RSujathaRaman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 43 total points
ID: 9786494
No
0
 
LVL 1

Assisted Solution

by:cj_nepenthe
cj_nepenthe earned 41 total points
ID: 9787218

Hi,

Unfortunately not, this is by design as a security precaution.
However it is possible to design your own error window, then display it using the window.showModalDialog() function.

See here for details:
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodaldialog.asp

This will also allow you set your own window title, although the text "Web Page Dialog" will always be displayed next to it for security.  A modal dialog box must be closed before the user can return to the page, so it behaves in the same was as an alert() window.

Good luck!
0
 
LVL 7

Assisted Solution

by:mmarksbury
mmarksbury earned 41 total points
ID: 12086113
Why not create a custom <DIV> element that displays instead of the alert box?  This way you can make it look exactly the way you want and not be confined to the limitations of the alert box.  It would be considerable more coding, but once it is done, you can use it on any page easily.  Good luck!
0
 
LVL 6

Expert Comment

by:masirof
ID: 12840959
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Split: GaryC123 & cj_nepenthe & mmarksbury

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

masirof
EE Cleanup Volunteer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question