View Single Post
  #4 (permalink)  
Old Mar 18th, 2005, 06:59
spinal007's Avatar
spinal007 spinal007 is offline
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,649
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
if you really need to change the title, and if you're allowed to, you can use VBScript which lets you specify the messages's title:

Code: Select all
<SCRIPT language="VBScript">
Function Show_Alert_With_Title(strTitle, strMessage)
 MsgBox(strMessage, vbOkOnly & vbInformation, strTitle)
End Function
</SCRIPT>
<SCRIPT language="JSCript">
function my_alert(strTitle, strMessage){
 Show_Alert_With_Title(strTitle, strMessage)
}
</SCRIPT>
Then on your code, instead of this:
Code: Select all
alert('this is my message');
you can use this:
Code: Select all
my_alert('this is my message', 'this is the title of the message');