This topic is locked

Alert('') function

8/6/2009 12:42:43 PM
ASPRunnerPro General questions
R
RBrogen author

Hi, I'm using the code below to launch a popup window to alert my users to some information. The dialog box is a plain box and I would like to know if there is a way to add a title to the box so it is more clear that it is a system message and not just an "Internet Explorer" popup. Any thoughts would be greatly appreciated.
Thanks
Response.Write "<script>alert('This is the message I want to show')</script>

hichem 8/7/2009

Hi, I'm using the code below to launch a popup window to alert my users to some information. The dialog box is a plain box and I would like to know if there is a way to add a title to the box so it is more clear that it is a system message and not just an "Internet Explorer" popup. Any thoughts would be greatly appreciated.

Thanks
Response.Write "<script>alert('This is the message I want to show')</script>


This is what I found, seems a nice alternative as it doesn't look like you can change the windows alert title: http://slayeroffice.com/code/custom_alert/

C
clig 8/13/2009

Hi, I'm using the code below to launch a popup window to alert my users to some information. The dialog box is a plain box and I would like to know if there is a way to add a title to the box so it is more clear that it is a system message and not just an "Internet Explorer" popup. Any thoughts would be greatly appreciated.

Thanks
Response.Write "<script>alert('This is the message I want to show')</script>


you could call your own window and custom message - adjust parameters as needed - this one turns the title bar off for example
dim strurl

strurl = "/NTSS/NTSS_2.asp"

dim strCommand

strCommand = "<script>window.open('"

strCommand = strCommand & strurl & "', '_blank', 'height=600,left=0,width=800,top=0,status=no,titlebar=no,scrollbars=yes,toolb

ar=no,menubar=no,location=no,resizable=yes,false');</script>"

Response.Write strCommand