The Dialog object represents an HTML <dialog> element.
You can access a <dialog> element by using getElementById():
You can create a <dialog> element by using the document.createElement() method:
Property | Description |
---|---|
open | Sets or returns whether a dialog should be open or not |
returnValue | Sets or returns the dialog's return value |
Method | Description |
---|---|
close() | Closes the dialog |
show() | Shows the dialog |
showModal() | Shows the dialog and makes it the top-most modal dialog |
The Dialog object also supports the standard properties and events.
HTML reference: HTML <dialog> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!