如何操作警报框属性 [英] how to manipulate alertbox properties

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

问题描述

亲爱的所有人,
我正在设计简单的HTML页面.
我的要求是页面加载时应显示带有两个按钮的警报消息框,即确定
如果我单击确定"按钮,则将显示该页面.
我该怎么做,我需要操纵警报框属性,例如
backgroundcolor
fontstyle
fontsize
高度
宽度等...
在此先感谢

Dear All,
I am designing simple HTML page.
My requirement is when the page loads it should display alert message box with two buttons ie.OK
If i click OK buttons then the page will display.
How can i do this and i need to manipulate alertbox properties like
backgroundcolor
fontstyle
fontsize
height
width etc...
Thanks in Advance

推荐答案

ModalPopupExtender显示消息框 [ ^ ]


您可以使用按钮上的OnClientClick.添加返回确认();做到这一点.它将创建一个JavaScript确认对话框

You can use the OnClientClick on the button for this. Add a return confirm(); to it. It will create a javascript confirm dialog

<asp:button id="OkButton" runat="server" text="Signed" onclientclick="return confirm('Are you sure you want to continue?');"/>


这篇关于如何操作警报框属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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