如何更改警报消息文本? [英] How to change the Alert message text?

查看:86
本文介绍了如何更改警报消息文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我们显示JScript的警告信息时更改字体?



How to change font when we display a alert message usign JScript?

<script language="Javascript">
<!--
alert ("Try Again!!")
//-->
</script>





我想再次显示输出!!用深红色字体是可能的吗?如果如此友善地提及如何。并且在此先感谢。



I want to display output of try again !! with Dark Red font is it possible? If so kindly mention how. And Thanks In Advance.

推荐答案

Can't be done with built in alert box. The easiest way is to have a hidden div that you show when needed.



更好地使用Jquery模型警报或引导模型..


better use Jquery model alert or bootstrap model..


它不可能使用jquery alert css或者通过modalpopup来显示你的msg并为那个添加关闭按钮
its not possible use jquery alert css or do by modalpopup which will display your msg and add close button for that one


我认为它应该是不可能的....好吧但我正在尝试为你.......
i think it should be not possible .... well but am trying for you.......


这篇关于如何更改警报消息文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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