Edit in GitHubLog an issue

HTMLDialogElement

Extends: HTMLElement

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement

new HTMLDialogElement(document, nodeName, namespaceURI)

Creates an instance of HTMLDialogElement.

ParamType
document
\*
nodeName
\*
namespaceURI
\*

htmlDialogElement.open : boolean

Read only

htmlDialogElement.returnValue : \*

htmlDialogElement.REJECTION_REASON_NOT_ALLOWED

When the promise returned from openDialog() is rejected, error.code can be equal to this value, which means that the application does not allow showing dialogs (e.g. only one dialog is allowed).

htmlDialogElement.REJECTION_REASON_DETACHED

When the promise returned from openDialog() is rejected, error.code can be equal to this value, which means that the node has been detached from DOM tree.

htmlDialogElement.dataset

Access to all the custom data attributes (data-*) set.

See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset

htmlDialogElement.nodeName : string

Read only

htmlDialogElement.localName : string

Read only

htmlDialogElement.tagName : string

Read only

htmlDialogElement.nodeType : number

Read only

htmlDialogElement.namespaceURI : string

Read only

htmlDialogElement.id : string

htmlDialogElement.tabIndex : number

htmlDialogElement.className : string

htmlDialogElement.attributes : NamedNodeMap

Read only

htmlDialogElement.style : Style

Read only

htmlDialogElement.clientLeft : number

Read only

htmlDialogElement.clientTop : number

Read only

htmlDialogElement.clientWidth : number

Read only

htmlDialogElement.clientHeight : number

Read only

htmlDialogElement.height : string | Number

The height of the element

htmlDialogElement.width : string | Number

The width of the element

htmlDialogElement.offsetParent : Element

Read only

htmlDialogElement.offsetLeft : number

Read only

htmlDialogElement.offsetTop : number

Read only

htmlDialogElement.offsetWidth : number

Read only

htmlDialogElement.offsetHeight : number

Read only

htmlDialogElement.scrollLeft : number

htmlDialogElement.scrollTop : number

htmlDialogElement.scrollWidth : number

Read only

htmlDialogElement.scrollHeight : number

Read only

htmlDialogElement.uxpContainer : UXPContainer

Read only

htmlDialogElement.disabled : boolean

htmlDialogElement.innerHTML : string

htmlDialogElement.outerHTML : string

htmlDialogElement.contentEditable

Read only

htmlDialogElement.isConnected : boolean

Read only

htmlDialogElement.parentNode : Node

Read only

htmlDialogElement.parentElement : Element

Read only

htmlDialogElement.firstChild : Node

Read only

htmlDialogElement.lastChild : Node

Read only

htmlDialogElement.previousSibling : Node

Read only

htmlDialogElement.nextSibling : Node

Read only

htmlDialogElement.firstElementChild : Node

Read only

htmlDialogElement.lastElementChild : Node

Read only

htmlDialogElement.previousElementSibling : Node

Read only

htmlDialogElement.nextElementSibling : Node

Read only

htmlDialogElement.textContent : string

htmlDialogElement.childNodes : NodeList

Read only

htmlDialogElement.children : HTMLCollection

Read only

htmlDialogElement.ownerDocument

Read only

htmlDialogElement.showModal()

Show the modal dialog.

Returns: Promise - A promise that resolves when the dialog is closed (NSC) after calling the close() method or clicking the "submit" button. The promise will be resolved with returnValue as a parameter. The promise can be rejected if the dialog was closed for other reasons e.g. the user hit escape or closed the window, or if the application does not allow showing the dialog. The error parameter will give more details. error.code will be one of the values from HTMLDialogElement.rejectionReasons.

htmlDialogElement.close([returnValue])

Closes the dialog; setting the return value (optional)

ParamType
[returnValue]
\*

htmlDialogElement.scrollIntoView()

htmlDialogElement.scrollIntoViewIfNeeded()

htmlDialogElement.focus()

htmlDialogElement.blur()

htmlDialogElement.getAttribute(name)

ParamType
name
string

htmlDialogElement.setAttribute(name, value)

ParamType
name
string
value
string

htmlDialogElement.removeAttribute(name)

ParamType
name
string

htmlDialogElement.hasAttribute(name)

ParamType
name
string

htmlDialogElement.getAttributeNode(name)

ParamType
name
string

htmlDialogElement.setAttributeNode(newAttr)

ParamType
newAttr
\*

htmlDialogElement.removeAttributeNode(oldAttr)

ParamType
oldAttr
\*

htmlDialogElement.click()

htmlDialogElement.getElementsByClassName(name)

ParamType
name
string

htmlDialogElement.getElementsByTagName(name)

ParamType
name
string

htmlDialogElement.querySelector(selector)

ParamType
selector
string

htmlDialogElement.querySelectorAll(selector)

ParamType
selector
string

htmlDialogElement.getBoundingClientRect()

htmlDialogElement.insertAdjacentHTML(position, value)

ParamType
position
value
string

htmlDialogElement.insertAdjacentElement(position, node)

ParamType
position
\*
node
\*

htmlDialogElement.insertAdjacentText(position, text)

ParamType
position
\*
text
\*

htmlDialogElement.hasChildNodes()

htmlDialogElement.cloneNode(deep)

ParamType
deep
boolean

htmlDialogElement.appendChild(child)

ParamType
child

htmlDialogElement.insertBefore(child, before)

ParamType
child
before

htmlDialogElement.replaceChild(newChild, oldChild)

ParamType
newChild
oldChild

htmlDialogElement.removeChild(child)

ParamType
child

htmlDialogElement.remove()

htmlDialogElement.before(...nodes)

ParamType
...nodes

htmlDialogElement.after(...nodes)

ParamType
...nodes

htmlDialogElement.replaceWith(...nodes)

ParamType
...nodes

htmlDialogElement.contains(node)

ParamType
node

htmlDialogElement.addEventListener(eventName, callback, [capture])

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

htmlDialogElement.removeEventListener(eventName, callback, [capture])

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

htmlDialogElement.dispatchEvent(event)

ParamType
event
\*
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.