Solved

Change caption of alert box

Posted on 2003-11-20
5
218 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 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