在javascript警告弹出消息框中的确定按钮的id [英] id of an ok button in javascript alert pop up message box

查看:71
本文介绍了在javascript警告弹出消息框中的确定按钮的id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何人都可以知道,当我们使用内置的javascript消息框即< script> alert('Message')< /脚本>



用户通过点击它关闭的ok按钮的id





提前感谢

Hi,

Can any one know, when we will using the inbuilt message box of javascript i.e <script>alert('Message')</script>

what will be the id of the ok button which is closed by the user by clicking on it


thanks in advance

推荐答案

为什么你需要知道OK框的ID?



顺便说一下,警告框的OK按钮没有HTML DOM元素(因此没有id)。它内置于您的浏览器中。
Why would you need to know the id of the OK box?

And btw, there is no HTML DOM element (thus, no id) for the OK button of alert box. It is built into your browser.


这篇关于在javascript警告弹出消息框中的确定按钮的id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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