如何将焦点设置为“取消”确认消息框中的按钮? [英] How to set focus to "Cancel" button in the confirm message box?

查看:95
本文介绍了如何将焦点设置为“取消”确认消息框中的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在确认信息框中将焦点设置为取消按钮?







谢谢,

Surbhi

Hi,

How to set focus to "Cancel" button in the confirm message box??



Thanks,
Surbhi

推荐答案

JavaScript native 确认不灵活。它做它的功能,非常适合高质量的编程;它还会创建一个模态窗口,不方便,它的样式取决于您的操作系统和浏览器样式,因此您无法设置样式。只是不要使用它。



其中一个奇特而灵活的选择是,例如,jQuery对话框:http://jqueryui.com/dialog [ ^ ]。



-SA
JavaScript native confirm is not flexible. It does what it does and is highly suitable for quality programming; it also creates a modal window, which is inconvenient, it has style depending on your OS and browser styles, so you cannot style it. Just don't use it.

One of the fancy and flexible alternatives is, for example, jQuery dialog: http://jqueryui.com/dialog[^].

—SA


这篇关于如何将焦点设置为“取消”确认消息框中的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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