Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

buttons

buttons
类型: 列表,下面的值用逗号分隔
需要显示在对话框上的按钮的一个列表,使用逗号分隔。将按钮放置在合适的位置,将根据用户平台自动执行基本的事件处理。在列表中可以使用以下值:
  • accept:“确定”按钮,按下按钮时将接受更改。此按钮为默认按钮。
  • cancel:“取消”按钮,将取消操作。
  • help:“帮助”按钮,在对话框显示一个“帮助”按钮。
  • disclosure:“更多信息”按钮,显示一个“more info”按钮。该按钮可能是一个按钮或一个三角形。
  • extra1:一个可选的额外的按钮。你可以通过buttonlabelextra1 属性设置它的label。
  • extra2:第二个可选的额外的按钮。你可以通过 buttonlabelextra2 属性设置它的label。

Note: If you don't want to display any buttons in the dialog box, set the value of this attribute to "," (a single comma).

文档标签和贡献者

 此页面的贡献者: ziyunfei, c_king
 最后编辑者: ziyunfei,