如何在JavaScript AlertBox中编辑标题? [英] How to Edit Title in JavaScript AlertBox?

查看:101
本文介绍了如何在JavaScript AlertBox中编辑标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我使用的是Vs2010和C#Asp.Net。我正在使用Java脚本警报消息框我需要把警报框的标题如何我做任何一个给我解决方案。



谢谢提前!.. ..

Dear All,

I am using Vs2010 and C# Asp.Net. I am using Java Script Alert Message Box i need to put Title of the Alert Box how to i do it any one give me the solution.

Thanks Advance!....

推荐答案

默认情况下,由于安全性问题,无法完成。但你可以改用自定义的。



请点击链接:



http://stackoverflow.com/questions/1905289/how-to-edit-a-javascript -alert-box-title [ ^ ]
No by default it can't be done due to security stuff. But you can use custom ones instead.

Please follow the link :

http://stackoverflow.com/questions/1905289/how-to-edit-a-javascript-alert-box-title[^]


无法修改js alert()框标题,但您可以使用其他插件来执行此操作,例如



Bootbox.js [ ^ ]



代码:

It is not possible to modify the js alert() box title, but you can use other plugins to do that like

Bootbox.js[^]

Code:
bootbox.dialog({
  message: "I am a custom dialog",
  title: "Custom title",
  buttons: {
    main: {
      label: "Close",
      className: "btn-default",
      callback: function() {
        Example.show("Primary button");
      }
    }
  }
});


这篇关于如何在JavaScript AlertBox中编辑标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆