Solved

Change caption of alert box

Posted on 2003-11-20
5
220 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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