shamakant_sharma
asked on
Giving title for JavaScript Alert message
Hi All...
Can anyone help me on this issue. I m working on JavaScript and in case of JavaScript alert messages its title is shown as "Microsoft Internet Explorer" as I m using IE5 as my browser. I want to give my own title in the alert meassage. Is it possible?? If yes then write me how. Waiting for your reply..
Shamakant Sharma.
Sr. Programmer
Path Infotech Ltd.
Can anyone help me on this issue. I m working on JavaScript and in case of JavaScript alert messages its title is shown as "Microsoft Internet Explorer" as I m using IE5 as my browser. I want to give my own title in the alert meassage. Is it possible?? If yes then write me how. Waiting for your reply..
Shamakant Sharma.
Sr. Programmer
Path Infotech Ltd.
You can't.
//iE soln only, use vbscript
<HTML>
<script language = VBScript>
Sub alert(title, content)
MsgBox content, 0, title
End Sub
</script>
<body>
<input type = button value = "Click " onClick = "alert 'My title', 'Hello World'">
</body>
</HTML>
<HTML>
<script language = VBScript>
Sub alert(title, content)
MsgBox content, 0, title
End Sub
</script>
<body>
<input type = button value = "Click " onClick = "alert 'My title', 'Hello World'">
</body>
</HTML>
// try this too
http://www.webreference.com/dhtml/column22/js-vbMsgBox.html
http://www.webreference.com/dhtml/column22/js-vbMsgBox.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.