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');