当js 打印一些东西的时候(alert) 浏览器的上标题(就是弹出框的最上侧的)是“javascript Alert xx” 怎样可以把“javascript Alert”改为自己想要的文字?要是比明白可以打开firefox浏览器看到最上侧有“Mozilla FireFox” IE浏览器有“Microsoft Internet Explorer”
解决方案 »
- 关于spring中的注入Field值
- 如何将HashMap的数据传递给JS
- 用MVC模式做的的留言薄,留言汉字显示乱码,求高手解决
- 关于滚动条的问题
- Hibernate的遇到问题。9999!!
- 下拉框的内容用getParameter()显示时出现乱码
- 高分求:如何模仿CSDN中来消息时,点击后自动提示自动消失?
- 300分求问题答案!!!如何在Servlet里定时执行某个任务?
- jsp的问题之一
- 关于Javamail收发邮件
- java.lang.NumberFormatException: For input string: "null"
- oracle 9i出现java.sql.SQLException: Io 异常: The Network Adapter could not ...
是的,或者可以用window.open
window.alert=function(title,content)
{
execScript('MsgBox "'+content+'",0,"'+title+'"','VBScript');
}
alert("标题","内容");
</script>
<!--
function Alert(strText){
var pWin=window.showModalDialog("b.htm",strText,"dialogHeight:116px; dialogWidth:232px; help: No; resizable: no; status: No; scroll:no; dialogTop:"+(screen.height-116)/2+"px; dialogLeft:"+(screen.width-232)/2+"px;");
}
Alert("content:警告内容部分?;title:警告标题;");
//-->
</script>
楼主可以设置alert的属性只是比较麻烦,用一个页面包含另一个页面,其实还不如用层,给个邮箱吧