javascript确认框
Javascript confirmation boxes aren't used nearly as often as they used to be, mostly due to more advanced usages of JavaScript and modal boxes, but they are still helpful. Whenever I create administrative functionality for my customers, I always use a JavaScript confirmation box before executing any permanent action -- an example would be when a customer tries to delete a file.
JavaScript确认框的使用频率不再像以前那样频繁,这主要是由于JavaScript和模式框的更高级用法,但它们仍然很有用。 每当我为客户创建管理功能时,在执行任何永久操作之前,我总是使用JavaScript确认框-例如,当客户尝试删除文件时。
代码/示例 (The Code / Example)
Delete File
The confirm
method returns the true/false result of the confirm box.
confirm
方法返回确认框的正确/错误结果。
javascript确认框