确认要防止什么
Norman(1981)对意图正确但动作出错的“失误”进行了分类。确认让用户在失误变成永久结果前停一下,只适用于严重且不可逆的操作(Nielsen, 2018)。参见防错设计。
用得太多就没人看
重复的对话框会被不读就接受(Böhme & Köpsell, 2010),大脑反应也会减弱(Anderson et al., 2015)。只有真正打断流程的警告才改变行为(Egelman et al., 2008)。日常操作应提供撤销。
好的确认框
写明对象与后果,如“永久删除12张照片?”。按钮用“删除”“取消”等动词,破坏性操作用红色(Apple, n.d.)。网页遵循ARIA alertdialog(W3C, n.d.)移动焦点。参见模态对话框。
常见问题
- 确认和撤销哪个好?
- 可撤销的操作用撤销更少打断。
- 按钮怎么写?
- 写实际动作,如“删除”“发送”。
来源核查日期:2026-10-27
参考文献
- Nielsen, J. (2018, February 18). Confirmation dialogs can prevent user errors (if not overused). Nielsen Norman Group. 确认对话框何时有用、何时被滥用。
- Norman, D. A. (1981). Categorization of action slips. Psychological Review, 88(1), 1–15. 动作失误分类的经典研究。
- Böhme, R., & Köpsell, S. (2010). Trained to accept? A field experiment on consent dialogs. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (pp. 2403–2406). ACM. 用户被训练成不读就接受。
- Egelman, S., Cranor, L. F., & Hong, J. (2008). You've been warned: An empirical study of the effectiveness of web browser phishing warnings. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (pp. 1065–1074). ACM. 哪些警告真正能阻止用户。
- Anderson, B. B., Kirwan, C. B., Jenkins, J. L., Eargle, D., Howard, S., & Vance, A. (2015). How polymorphic warnings reduce habituation in the brain: Insights from an fMRI study. In Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems (pp. 2883–2892). ACM. 大脑对重复警告的习惯化。
- Apple. (n.d.). Alerts. Human Interface Guidelines. 破坏性按钮与文案指南。
- World Wide Web Consortium. (n.d.). Alert and message dialogs pattern. ARIA Authoring Practices Guide. alertdialog角色与焦点规则。
