如何显示“确定"和“取消"按钮的消息框? [英] How to show Messagebox with ok and cancel button..?

查看:76
本文介绍了如何显示“确定"和“取消"按钮的消息框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiiii Friends ...我有一个模块,我可以在其中删除记录..在删除记录之前,我需要先单击确定"或取消"按钮,然后才能获得用户的许可..如何对此进行编码..请帮助我..?在此先感谢您...................................................................一次......................................


Hiiii Friends...I have module in which i m deleting records..before deleting that records i need users permission with ok or cancel button.. how to code this..please help me..?Thanks in advance..



推荐答案

有许多以jQuery插件形式存在的组件可以很好地解决此问题.请参阅:
http://bit.ly/S8DVdS [ ^ ].

我强烈建议学习jQuery.您可以从这里开始:
http://en.wikipedia.org/wiki/JQuery [ http://docs.jquery.com/How_jQuery_Works [ http://docs.jquery.com/Tutorials [
There is good number of components in the form of jQuery plug-ins to solve this problem nicely. Please see:
http://bit.ly/S8DVdS[^].

I would highly recommend learning jQuery. You can start here:
http://en.wikipedia.org/wiki/JQuery[^],
http://docs.jquery.com/How_jQuery_Works[^],
http://docs.jquery.com/Tutorials[^].

—SA


<script>
function disp_confirm()
{
var r=confirm("Press a button!")
if (r==true)
  {
  alert("You pressed OK!")
  }
else
  {
  alert("You pressed Cancel!")
  }
}
</script>


http://forums.asp.net/t/1459501.aspx [ ^ ]


这篇关于如何显示“确定"和“取消"按钮的消息框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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