IPowerBiElement interface
- Extends
-
HTMLElement
屬性
| class |
這是一個 |
| part |
|
| power |
|
| style | |
| text |
繼承的屬性
| access |
這個 |
| access |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| aria |
|
| assigned |
|
| attributes | 該屬性會 |
| attribute |
|
| ATTRIBUTE_NODE | |
| autocapitalize |
|
| autocorrect |
|
| autofocus | |
| baseURI | 節點介面的唯 |
| CDATA_SECTION_NODE | node 是 CDATASection 節點。 |
| child |
|
| child |
節點介面的唯 |
| children | 傳回子專案。 |
| class |
該 |
| client |
|
| client |
Element 介面的 |
| client |
|
| client |
|
| COMMENT_NODE | node 是批注節點。 |
| content |
|
| current |
|
| dataset | |
| dir | 屬性 |
| DOCUMENT_FRAGMENT_NODE | node 是 DocumentFragment 節點。 |
| DOCUMENT_NODE | node 是檔。 |
| DOCUMENT_POSITION_CONTAINED_BY | 當其他 是節點的子代時設定。 |
| DOCUMENT_POSITION_CONTAINS | 當其他 是節點的上階時設定。 |
| DOCUMENT_POSITION_DISCONNECTED | 當節點和其他不在相同樹狀結構中時設定。 |
| DOCUMENT_POSITION_FOLLOWING | 當其他節點在下列節點時設定。 |
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | |
| DOCUMENT_POSITION_PRECEDING | 當其他 是先前的節點時設定。 |
| DOCUMENT_TYPE_NODE | node 是 doctype。 |
| draggable | HTMLElement 介面的特性會 |
| ELEMENT_NODE | node 是元素。 |
| enter |
|
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
節點介面的唯 |
| first |
傳回專案的第一個子系,否則傳回 null。 |
| hidden | HTMLElement 屬性 |
| id |
|
| inert | HTMLElement 屬性 |
| innerHTML | 元素介面的屬性會 |
| inner |
|
| input |
|
| is |
Node 介面的唯 |
| is |
|
| lang |
|
| last |
節點介面的唯 |
| last |
傳回項目的最後一個子系,否則傳回 null。 |
| local |
唯讀屬性會 |
| namespaceURI |
|
| next |
傳回元素的第一個下一個同層級,否則傳回 null。 |
| next |
Node 介面的唯 |
| node |
Node 的唯讀 |
| node |
節點介面的唯 |
| node |
|
| nonce | |
| NOTATION_NODE | |
| offset |
HTMLElement 介面的唯讀特性以 |
| offset |
|
| offset |
|
| offset |
|
| offset |
|
| onabort | |
| onanimationcancel | |
| onanimationend | |
| onanimationiteration | |
| onanimationstart | |
| onauxclick | |
| onbeforeinput | |
| onbeforematch | |
| onbeforetoggle | |
| onblur | |
| oncancel | |
| oncanplay | |
| oncanplaythrough | |
| onchange | |
| onclick | |
| onclose | |
| oncontextlost | |
| oncontextmenu | |
| oncontextrestored | |
| oncopy | |
| oncuechange | |
| oncut | |
| ondblclick | |
| ondrag | |
| ondragend | |
| ondragenter | |
| ondragleave | |
| ondragover | |
| ondragstart | |
| ondrop | |
| ondurationchange | |
| onemptied | |
| onended | |
| onerror | |
| onfocus | |
| onformdata | |
| onfullscreenchange | |
| onfullscreenerror | |
| ongotpointercapture | |
| oninput | |
| oninvalid | |
| onkeydown | |
| onkeypress | |
| onkeyup | |
| onload | |
| onloadeddata | |
| onloadedmetadata | |
| onloadstart | |
| onlostpointercapture | |
| onmousedown | |
| onmouseenter | |
| onmouseleave | |
| onmousemove | |
| onmouseout | |
| onmouseover | |
| onmouseup | |
| onpaste | |
| onpause | |
| onplay | |
| onplaying | |
| onpointercancel | |
| onpointerdown | |
| onpointerenter | |
| onpointerleave | |
| onpointermove | |
| onpointerout | |
| onpointerover | |
| onpointerrawupdate | 僅適用於安全內容。 |
| onpointerup | |
| onprogress | |
| onratechange | |
| onreset | |
| onresize | |
| onscroll | |
| onscrollend | |
| onsecuritypolicyviolation | |
| onseeked | |
| onseeking | |
| onselect | |
| onselectionchange | |
| onselectstart | |
| onslotchange | |
| onstalled | |
| onsubmit | |
| onsuspend | |
| ontimeupdate | |
| ontoggle | |
| ontouchcancel | |
| ontouchend | |
| ontouchmove | |
| ontouchstart | |
| ontransitioncancel | |
| ontransitionend | |
| ontransitionrun | |
| ontransitionstart | |
| onvolumechange | |
| onwaiting | |
| onwebkitanimationend | |
| onwebkitanimationiteration | |
| onwebkitanimationstart | |
| onwebkittransitionend | |
| onwheel | |
| outerHTML |
|
| outer |
|
| owner |
節點介面的唯讀 |
| parent |
Node 介面的唯 |
| parent |
節點介面的唯 |
| popover | HTMLElement 介面的特性透過 |
| prefix |
|
| previous |
傳回元素的第一個上一個同層級,否則傳回 null。 |
| previous |
節點介面的唯 |
| PROCESSING_INSTRUCTION_NODE | node 是 ProcessingInstruction 節點。 |
| role | |
| scroll |
|
| scroll |
|
| scroll |
|
| scroll |
|
| shadow |
|
| slot |
|
| spellcheck |
|
| tab |
|
| tag |
|
| TEXT_NODE | node 是 Text 節點。 |
| title | 屬性 |
| translate |
|
| writing |
|
繼承的方法
| add |
|
| add |
|
| after((string | Node)[]) | 在節點後面插入節點,同時以對等的 Text 節點取代節點中的字串。 如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。 |
| animate(Keyframe[] | Property |
|
| append((string | Node)[]) | 在節點的最後一個子系之後插入節點,同時以對等的 Text 節點取代節點中的字串。 如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。 |
| append |
|
| attach |
該方法回 |
| attach |
該 |
| before((string | Node)[]) | 在節點之前插入節點,同時以對等的 Text 節點取代節點中的字串。 如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。 |
| blur() | |
| check |
|
| click() | 此 |
| clone |
|
| closest<E>(string) | |
| closest<K>(K) |
|
| closest<K>(K) | |
| closest<K>(K) | |
| compare |
|
| computed |
|
| contains(Node | null) |
|
| dispatch |
|
| focus(Focus |
|
| get |
|
| get |
元素 |
| get |
陣 |
| get |
回傳指定元素的指定屬性,作為 Attr 節點。 |
| get |
|
| get |
|
| get |
此方法會 |
| get |
|
| get |
Element 方法 |
| get |
|
| get |
該 |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
此 |
| get |
|
| get |
|
| getHTML(Get |
|
| get |
|
| has |
該 |
| has |
|
| has |
|
| has |
|
| has |
|
| hide |
|
| insert |
相 |
| insert |
將 |
| insert |
|
| insert |
|
| is |
|
| is |
|
| is |
|
| lookup |
|
| lookup |
|
| matches(string) |
|
| normalize() |
|
| prepend((string | Node)[]) | 在節點的第一個子系之前插入節點,同時以對等的 Text 節點取代節點中的字串。 如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。 |
| query |
|
| query |
傳回符合選取器之節點子代的第一個專案。 |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
傳回符合選取器之節點的所有元素子代。 |
| query |
|
| query |
|
| query |
|
| release |
先前 |
| remove() | 拿掉節點。 |
| remove |
Element 方法 |
| remove |
|
| remove |
|
| remove |
|
| remove |
|
| remove |
|
| replace |
|
| replace |
將節點的所有子系取代為節點,同時以對等的 Text 節點取代節點中的字串。 如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。 |
| replace |
以節點取代節點,同時以對等的 Text 節點取代節點中的字串。 如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。 |
| request |
此 |
| request |
|
| scroll(number, number) | |
| scroll(Scroll |
|
| scroll |
|
| scroll |
|
| scroll |
元素介面的方法 |
| scroll |
|
| scroll |
|
| set |
|
| set |
|
| set |
|
| set |
|
| set |
|
| set |
未來 |
| show |
|
| toggle |
現在 |
| toggle |
|
| webkit |
屬性詳細資料
classList
這是一個 Element.classList 唯讀屬性,會回傳一個活的 DOMTokenList 集合,包含 class 該元素的屬性。
DOMTokenList classList
屬性值
DOMTokenList
part
part Element 介面的屬性代表該元素的零件識別碼(即使用 屬性part設定),以 DOMTokenList 形式回傳。
DOMTokenList part
屬性值
DOMTokenList
powerBiEmbed
powerBiEmbed: Embed
屬性值
Embed
style
textContent
繼承的屬性詳細資料
accessKey
這個 HTMLElement.accessKey 屬性設定使用者可以按下的按鍵,以跳轉到指定元素。
accessKey: string
屬性值
string
繼承自 HTMLElement.accessKey
accessKeyLabel
HTMLElement.accessKeyLabel唯讀屬性會回傳包含該元素瀏覽器指派的存取金鑰(若有的話)的字串;否則則回傳空字串。
accessKeyLabel: string
屬性值
string
繼承自 HTMLElement.accessKeyLabel
ariaActiveDescendantElement
ariaActiveDescendantElement: Element | null
屬性值
Element | null
繼承自 HTMLElement.ariaActiveDescendantElement
ariaAtomic
ariaAutoComplete
ariaBrailleLabel
ariaBrailleRoleDescription
ariaBrailleRoleDescription: string | null
屬性值
string | null
繼承自 HTMLElement.ariaBrailleRoleDescription
ariaBusy
ariaChecked
ariaColCount
ariaColIndex
ariaColIndexText
ariaColSpan
ariaControlsElements
ariaControlsElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaControlsElements(HTMLElement.ariaControlsElements)
ariaCurrent
ariaDescribedByElements
ariaDescribedByElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaDescribedByElements
ariaDescription
ariaDetailsElements
ariaDetailsElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaDetailsElements
ariaDisabled
ariaErrorMessageElements
ariaErrorMessageElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaErrorMessageElements
ariaExpanded
ariaFlowToElements
ariaFlowToElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaFlowToElements
ariaHasPopup
ariaHidden
ariaInvalid
ariaKeyShortcuts
ariaLabel
ariaLabelledByElements
ariaLabelledByElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaLabelledByElements
ariaLevel
ariaLive
ariaModal
ariaMultiLine
ariaMultiSelectable
ariaOrientation
ariaOwnsElements
ariaOwnsElements: (readonly Element[]) | null
屬性值
(readonly Element[]) | null
繼承自 HTMLElement.ariaOwnsElements
ariaPlaceholder
ariaPosInSet
ariaPressed
ariaReadOnly
ariaRelevant
ariaRequired
ariaRoleDescription
ariaRowCount
ariaRowIndex
ariaRowIndexText
ariaRowSpan
ariaSelected
ariaSetSize
ariaSort
ariaValueMax
ariaValueMin
ariaValueNow
ariaValueText
assignedSlot
attributes
該屬性會 Element.attributes 回傳所有註冊到指定節點的屬性節點的活集合。
attributes: NamedNodeMap
屬性值
NamedNodeMap
繼承自 HTMLElement.attributes
attributeStyleMap
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
屬性值
2
繼承自 HTMLElement.ATTRIBUTE_NODE
autocapitalize
autocapitalize HTMLElement 介面的特性代表該元素對使用者輸入的大小寫行為。
autocapitalize: string
屬性值
string
繼承自 HTMLElement.autocapitalize
autocorrect
autocorrect HTMLElement 介面的特性控制是否啟用可編輯文字的自動更正,以處理拼寫和/或標點符號錯誤。
autocorrect: boolean
屬性值
boolean
繼承自 HTMLElement.autocorrect
autofocus
baseURI
CDATA_SECTION_NODE
node 是 CDATASection 節點。
CDATA_SECTION_NODE: 4
屬性值
4
繼承自 HTMLElement.CDATA_SECTION_NODE
childElementCount
childNodes
節點介面的唯 childNodes 讀特性會回傳一個活著的子節點,第一個子節點被指派索引 0。
childNodes: NodeListOf<ChildNode>
屬性值
NodeListOf<ChildNode>
繼承自 HTMLElement.childNodes
children
className
clientHeight
clientHeight Element 介面的唯讀屬性對於沒有 CSS 或內嵌版面框的元素為零;否則,則是元素的內部高度(像素單位)。
clientHeight: number
屬性值
number
繼承自 HTMLElement.clientHeight
clientLeft
Element 介面的 clientLeft 唯讀特性會回傳元素左側邊界的寬度(以像素為單位)。
clientLeft: number
屬性值
number
繼承自 HTMLElement.clientLeft
clientTop
clientTop Element 介面的唯讀特性會回傳元素頂端邊框的寬度(以像素為單位)。
clientTop: number
屬性值
number
繼承自 HTMLElement.clientTop
clientWidth
clientWidth Element 介面的唯讀特性對於內嵌元素和沒有 CSS 的元素為零;否則,則是元素的內寬度(以像素為單位)。
clientWidth: number
屬性值
number
繼承自 HTMLElement.clientWidth
COMMENT_NODE
node 是批注節點。
COMMENT_NODE: 8
屬性值
8
繼承自 HTMLElement.COMMENT_NODE
contentEditable
currentCSSZoom
currentCSSZoom Element 介面的唯讀特性提供元素的「有效」CSS,zoom並考慮對元素及其所有父元素的縮放。
currentCSSZoom: number
屬性值
number
繼承自 HTMLElement.currentCSSZoom
dataset
dir
DOCUMENT_FRAGMENT_NODE
node 是 DocumentFragment 節點。
DOCUMENT_FRAGMENT_NODE: 11
屬性值
11
繼承自 HTMLElement.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
node 是檔。
DOCUMENT_NODE: 9
屬性值
9
繼承自 HTMLElement.DOCUMENT_NODE 的
DOCUMENT_POSITION_CONTAINED_BY
當其他 是節點的子代時設定。
DOCUMENT_POSITION_CONTAINED_BY: 16
屬性值
16
繼承自 HTMLElement.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
當其他 是節點的上階時設定。
DOCUMENT_POSITION_CONTAINS: 8
屬性值
8
繼承自 HTMLElement.DOCUMENT_POSITION_CONTAINS 的
DOCUMENT_POSITION_DISCONNECTED
當節點和其他不在相同樹狀結構中時設定。
DOCUMENT_POSITION_DISCONNECTED: 1
屬性值
1
繼承自 HTMLElement.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
當其他節點在下列節點時設定。
DOCUMENT_POSITION_FOLLOWING: 4
屬性值
4
繼承自 HTMLElement.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
屬性值
32
繼承自 HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
當其他 是先前的節點時設定。
DOCUMENT_POSITION_PRECEDING: 2
屬性值
2
繼承自 HTMLElement.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
node 是 doctype。
DOCUMENT_TYPE_NODE: 10
屬性值
10
繼承自 HTMLElement.DOCUMENT_TYPE_NODE
draggable
HTMLElement 介面的特性會 draggable 取得並設定一個布林原語,指示該元素是否可拖曳。
draggable: boolean
屬性值
boolean
繼承自 HTMLElement.draggable
ELEMENT_NODE
node 是元素。
ELEMENT_NODE: 1
屬性值
1
繼承自 HTMLElement.ELEMENT_NODE 的
enterKeyHint
ENTITY_NODE
ENTITY_NODE: 6
屬性值
6
繼承自 HTMLElement.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
屬性值
5
繼承自 HTMLElement.ENTITY_REFERENCE_NODE
firstChild
節點介面的唯 firstChild 讀特性會回傳該節點在樹中的第一個子節點,或 null 如果節點沒有子節點。
firstChild: ChildNode | null
屬性值
ChildNode | null
繼承自 HTMLElement.firstChild
firstElementChild
傳回專案的第一個子系,否則傳回 null。
firstElementChild: Element | null
屬性值
Element | null
繼承自 HTMLElement.firstElementChild
hidden
id
inert
innerHTML
元素介面的屬性會 innerHTML 取得或設定元素中包含的 HTML 或 XML 標記。
innerHTML: string
屬性值
string
繼承自 HTMLElement.innerHTML
innerText
innerText HTMLElement 介面的屬性代表節點及其後代節點的渲染文字內容。
innerText: string
屬性值
string
繼承自 HTMLElement.innerText
inputMode
isConnected
Node 介面的唯 isConnected 讀特性會回傳一個布林值,指示該節點是否直接或間接連接到文件物件。
isConnected: boolean
屬性值
boolean
繼承自 HTMLElement.isConnected
isContentEditable
lang
lang HTMLElement 介面的特性以 MISSING: RFC(5646, 'BCP 47 語言識別標籤')表示元素屬性值與文字內容的基底語言。
lang: string
屬性值
string
繼承自 HTMLElement.lang
lastChild
節點介面的唯 lastChild 讀特性會回傳該節點的最後一個子節點,或 null 如果沒有子節點。
lastChild: ChildNode | null
屬性值
ChildNode | null
繼承自 HTMLElement.lastChild
lastElementChild
傳回項目的最後一個子系,否則傳回 null。
lastElementChild: Element | null
屬性值
Element | null
繼承自 HTMLElement.lastElementChild
localName
唯讀屬性會 Element.localName 回傳元素限定名稱的局部部分。
localName: string
屬性值
string
繼承自 HTMLElement.localName
namespaceURI
Element.namespaceURI唯讀特性會回傳元素的命名空間 URI,或null當元素不在命名空間時。
namespaceURI: string | null
屬性值
string | null
繼承自 HTMLElement.namespaceURI
nextElementSibling
傳回元素的第一個下一個同層級,否則傳回 null。
nextElementSibling: Element | null
屬性值
Element | null
繼承自 HTMLElement.nextElementSibling
nextSibling
Node 介面的唯 nextSibling 讀特性會回傳父節點 Node.childNodes 中緊接指定節點的節點,或若指定節點是父元素的最後一個子節點,則回傳 null 該節點。
nextSibling: ChildNode | null
屬性值
ChildNode | null
繼承自 HTMLElement.nextSibling
nodeName
nodeType
nodeValue
nodeValue節點介面的特性會回傳或設定目前節點的值。
nodeValue: string | null
屬性值
string | null
繼承自 HTMLElement.nodeValue
nonce
NOTATION_NODE
NOTATION_NODE: 12
屬性值
12
繼承自 HTMLElement.NOTATION_NODE
offsetHeight
HTMLElement 介面的唯讀特性以 offsetHeight 整數形式回傳元素的高度,包括垂直填充與邊框。
offsetHeight: number
屬性值
number
繼承自 HTMLElement.offsetHeight
offsetLeft
offsetLeft HTMLElement 介面的唯讀特性會回傳當前元素左上角在 HTMLElement.offsetParent 節點中偏移到左邊的像素數。
offsetLeft: number
屬性值
number
繼承自 HTMLElement.offsetLeft
offsetParent
HTMLElement.offsetParent唯讀性質回傳一個指向最接近(包含階層中最近)位置的祖先元素的參考。
offsetParent: Element | null
屬性值
Element | null
繼承自 HTMLElement.offsetParent
offsetTop
offsetTop HTMLElement 介面的唯讀特性會回傳從當前元素的外邊界(包括其邊界)到 HTMLelement.offsetParent(最近位置的祖先元素)頂端填充邊的距離。
offsetTop: number
屬性值
number
繼承自 HTMLElement.offsetTop
offsetWidth
offsetWidth HTMLElement 介面的唯讀特性會以整數回傳元素的版面寬度。
offsetWidth: number
屬性值
number
繼承自 HTMLElement.offsetWidth
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: UIEvent) => any | null
繼承自 HTMLElement.onabort
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
繼承自 HTMLElement.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
繼承自 HTMLElement.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
繼承自 HTMLElement.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
繼承自 HTMLElement.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: InputEvent) => any | null
繼承自 HTMLElement.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
繼承自 HTMLElement.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
繼承自 HTMLElement.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
繼承自 HTMLElement.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
繼承自 HTMLElement.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: DragEvent) => any | null
繼承自 HTMLElement.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onended
onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
繼承自 HTMLElement.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
繼承自 HTMLElement.onformdata
onfullscreenchange
onfullscreenchange: (this: Element, ev: Event) => any | null
屬性值
(this: Element, ev: Event) => any | null
繼承自 HTMLElement.onfullscreenchange
onfullscreenerror
onfullscreenerror: (this: Element, ev: Event) => any | null
屬性值
(this: Element, ev: Event) => any | null
繼承自 HTMLElement.onfullscreenerror
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.ongotpointercapture
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
繼承自 HTMLElement.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
繼承自 HTMLElement.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
繼承自 HTMLElement.onkeyup
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onlostpointercapture
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
繼承自 HTMLElement.onmouseup
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
繼承自 HTMLElement.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointerover
onpointerrawupdate
僅適用於安全內容。
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
繼承自 HTMLElement.onpointerup
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
繼承自 HTMLElement.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onratechange
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: UIEvent) => any | null
繼承自 HTMLElement.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
繼承自 HTMLElement.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onstalled
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
繼承自 HTMLElement.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
繼承自 HTMLElement.ontoggle
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
繼承自 HTMLElement.ontouchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
繼承自 HTMLElement.ontouchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
繼承自 HTMLElement.ontouchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
繼承自 HTMLElement.ontouchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
繼承自 HTMLElement.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
繼承自 HTMLElement.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
繼承自 HTMLElement.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
繼承自 HTMLElement.ontransitionstart
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onwaiting
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
屬性值
(this: GlobalEventHandlers, ev: Event) => any | null
繼承自 HTMLElement.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
屬性值
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
繼承自 HTMLElement.onwheel
outerHTML
outerHTML元素DOM介面的屬性會取得描述該元素及其後代的序列化HTML片段。
outerHTML: string
屬性值
string
繼承自 HTMLElement.outerHTML
outerText
outerText HTMLElement 介面的屬性回傳與 HTMLElement.innerText 相同的值。
outerText: string
屬性值
string
繼承自 HTMLElement.outerText
ownerDocument
parentElement
Node 介面的唯 parentElement 讀特性會回傳 DOM 節點的父元素,或 null 如果該節點沒有父節點,或其父節點不是 DOM 元素,則會回傳。
parentElement: HTMLElement | null
屬性值
HTMLElement | null
繼承自 HTMLElement.parentElement
parentNode
節點介面的唯 parentNode 讀特性會回傳指定節點在 DOM 樹中的父節點。
parentNode: ParentNode | null
屬性值
ParentNode | null
繼承自 HTMLElement.parentNode
popover
HTMLElement 介面的特性透過 popover JavaScript'auto'(、、 'hint'或 'manual')取得並設定元素的彈出狀態,可用於特徵偵測。
popover: string | null
屬性值
string | null
繼承自 HTMLElement.popover
prefix
Element.prefix唯讀特性會回傳指定元素的命名空間前綴,或null若未指定前綴則回傳。
prefix: string | null
屬性值
string | null
繼承自 HTMLElement.prefix
previousElementSibling
傳回元素的第一個上一個同層級,否則傳回 null。
previousElementSibling: Element | null
屬性值
Element | null
繼承自 HTMLElement.previousElementSibling
previousSibling
節點介面的唯 previousSibling 讀特性會回傳其父節點中緊鄰指定的節點,或 null 若該指定節點是該清單中的第一個節點。
previousSibling: ChildNode | null
屬性值
ChildNode | null
繼承自 HTMLElement.previousSibling
PROCESSING_INSTRUCTION_NODE
node 是 ProcessingInstruction 節點。
PROCESSING_INSTRUCTION_NODE: 7
屬性值
7
繼承自 HTMLElement.PROCESSING_INSTRUCTION_NODE
role
scrollHeight
scrollHeight Element 介面的唯讀特性是衡量元素內容高度,包括因溢位而無法在螢幕上顯示的內容。
scrollHeight: number
屬性值
number
繼承自 HTMLElement.scrollHeight
scrollLeft
scrollLeft元素介面的特性會取得或設定元素內容從左邊滾動的像素數。
scrollLeft: number
屬性值
number
繼承自 HTMLElement.scrollLeft
scrollTop
scrollWidth
scrollWidth Element 介面的唯讀特性是衡量元素內容的寬度,包括因溢位而無法在螢幕上顯示的內容。
scrollWidth: number
屬性值
number
繼承自 HTMLElement.scrollWidth
shadowRoot
Element.shadowRoot唯讀屬性代表該元素所承載的陰影根。
shadowRoot: ShadowRoot | null
屬性值
ShadowRoot | null
繼承自 HTMLElement.shadowRoot
slot
spellcheck
spellcheck HTMLElement 介面的屬性代表一個布林值,用以控制拼字檢查提示。
spellcheck: boolean
屬性值
boolean
繼承自 HTMLElement.spellcheck
tabIndex
tagName
TEXT_NODE
node 是 Text 節點。
TEXT_NODE: 3
屬性值
3
繼承自 HTMLElement.TEXT_NODE 的
title
屬性 HTMLElement.title 代表元素的標題:當滑鼠移到節點上時,文字通常會以「提示」彈出視窗顯示。
title: string
屬性值
string
繼承自 HTMLElement.title
translate
translate HTMLElement 介面的特性會指示在頁面本地化時,是否要翻譯元素的屬性值及其 Text 節點子節點的值,還是保持不變。
translate: boolean
屬性值
boolean
繼承自 HTMLElement.translate
writingSuggestions
writingSuggestions HTMLElement 介面的屬性是一個字串,指示是否應在元素範圍內啟用瀏覽器提供的寫作建議。
writingSuggestions: string
屬性值
string
繼承自 HTMLElement.writing建議
繼承的方法的詳細資料
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
參數
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
繼承自 HTMLElement.addEventListener
addEventListener<K>(K, (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, boolean | AddEventListenerOptions)
function addEventListener<K>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
參數
- type
-
K
- listener
-
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
繼承自 HTMLElement.addEventListener
after((string | Node)[])
在節點後面插入節點,同時以對等的 Text 節點取代節點中的字串。
如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。
function after(nodes: (string | Node)[])
參數
- nodes
-
(string | Node)[]
繼承自 HTMLElement.after
animate(Keyframe[] | PropertyIndexedKeyframes | null, number | KeyframeAnimationOptions)
function animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation
參數
- keyframes
-
Keyframe[] | PropertyIndexedKeyframes | null
- options
-
number | KeyframeAnimationOptions
傳回
Animation
繼承自 HTMLElement.animate
append((string | Node)[])
在節點的最後一個子系之後插入節點,同時以對等的 Text 節點取代節點中的字串。
如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。
function append(nodes: (string | Node)[])
參數
- nodes
-
(string | Node)[]
繼承自 HTMLElement.append
appendChild<T>(T)
appendChild()節點介面的方法將節點加入指定父節點子節點清單的末尾。
function appendChild<T>(node: T): T
參數
- node
-
T
傳回
T
繼承自 HTMLElement.appendChild
attachInternals()
該方法回 HTMLElement.attachInternals() 傳一個 ElementInternals 物件。
function attachInternals(): ElementInternals
傳回
ElementInternals
繼承自 HTMLElement.attachInternals
attachShadow(ShadowRootInit)
該 Element.attachShadow() 方法會將陰影 DOM 樹附加到指定元素,並回傳其 ShadowRoot 的參考。
function attachShadow(init: ShadowRootInit): ShadowRoot
參數
- init
-
ShadowRootInit
傳回
ShadowRoot
繼承自 HTMLElement.attachShadow
before((string | Node)[])
在節點之前插入節點,同時以對等的 Text 節點取代節點中的字串。
如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。
function before(nodes: (string | Node)[])
參數
- nodes
-
(string | Node)[]
繼承自 HTMLElement.before
blur()
checkVisibility(CheckVisibilityOptions)
checkVisibility()元素介面的方法檢查該元素是否可見。
function checkVisibility(options?: CheckVisibilityOptions): boolean
參數
- options
-
CheckVisibilityOptions
傳回
boolean
繼承自 HTMLElement.checkVisibility
click()
cloneNode(boolean)
cloneNode()節點介面的方法會回傳該方法所呼叫的節點的副本。
function cloneNode(subtree?: boolean): Node
參數
- subtree
-
boolean
傳回
Node
繼承自 HTMLElement.cloneNode
closest<E>(string)
function closest<E>(selectors: string): E | null
參數
- selectors
-
string
傳回
E | null
繼承自 HTMLElement.closest
closest<K>(K)
closest()元素介面的方法會遍歷元素及其父節點(朝向文件根節點),直到找到符合指定 CSS 選擇器的節點。
function closest<K>(selector: K): HTMLElementTagNameMap[K] | null
參數
- selector
-
K
傳回
HTMLElementTagNameMap[K] | null
繼承自 HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): SVGElementTagNameMap[K] | null
參數
- selector
-
K
傳回
SVGElementTagNameMap[K] | null
繼承自 HTMLElement.closest
closest<K>(K)
function closest<K>(selector: K): MathMLElementTagNameMap[K] | null
參數
- selector
-
K
傳回
MathMLElementTagNameMap[K] | null
繼承自 HTMLElement.closest
compareDocumentPosition(Node)
compareDocumentPosition()節點介面的方法會回報其參數節點相對於被呼叫節點的位置。
function compareDocumentPosition(other: Node): number
參數
- other
-
Node
傳回
number
繼承自 HTMLElement.compareDocumentPosition
computedStyleMap()
computedStyleMap()元素介面的方法會回傳一個 StylePropertyMapReadOnly 介面,提供一個唯讀的 CSS 宣告區塊表示,作為 CSSStyleDeclaration 的替代方案。
function computedStyleMap(): StylePropertyMapReadOnly
傳回
StylePropertyMapReadOnly
繼承自 HTMLElement.computedStyleMap
contains(Node | null)
contains()節點介面的方法回傳一個布林值,表示節點是否為特定節點的後代,即該節點本身、其直接子節點之一(Node.childNodes)、子節點的直接子節點之一,依此類推。
function contains(other: Node | null): boolean
參數
- other
-
Node | null
傳回
boolean
繼承自 HTMLElement.contains
dispatchEvent(Event)
dispatchEvent() EventTarget 的方法(同步)向物件發送事件,並以適當順序呼叫受影響的事件監聽者。
function dispatchEvent(event: Event): boolean
參數
- event
-
Event
傳回
boolean
繼承自 HTMLElement.dispatchEvent
focus(FocusOptions)
getAnimations(GetAnimationsOptions)
function getAnimations(options?: GetAnimationsOptions): Animation[]
參數
- options
-
GetAnimationsOptions
傳回
Animation[]
繼承自 HTMLElement.getAnimations
getAttribute(string)
元素 getAttribute() 的方法。
function getAttribute(qualifiedName: string): string | null
參數
- qualifiedName
-
string
傳回
string | null
繼承自 HTMLElement.getAttribute
getAttributeNames()
陣 getAttributeNames() 列的方法。
function getAttributeNames(): string[]
傳回
string[]
繼承自 HTMLElement.getAttributeNames
getAttributeNode(string)
回傳指定元素的指定屬性,作為 Attr 節點。
function getAttributeNode(qualifiedName: string): Attr | null
參數
- qualifiedName
-
string
傳回
Attr | null
繼承自 HTMLElement.getAttributeNode
getAttributeNodeNS(string | null, string)
getAttributeNodeNS() Element 介面的方法回傳元素的命名空間 Attr 節點。
function getAttributeNodeNS(namespace: string | null, localName: string): Attr | null
參數
- namespace
-
string | null
- localName
-
string
傳回
Attr | null
繼承自 HTMLElement.getAttributeNodeNS
getAttributeNS(string | null, string)
getAttributeNS() Element 介面的方法會回傳屬性的字串值,並以指定的命名空間和名稱。
function getAttributeNS(namespace: string | null, localName: string): string | null
參數
- namespace
-
string | null
- localName
-
string
傳回
string | null
繼承自 HTMLElement.getAttributeNS
getBoundingClientRect()
此方法會 Element.getBoundingClientRect() 回傳相對於視窗的位置。
function getBoundingClientRect(): DOMRect
傳回
DOMRect
繼承自 HTMLElement.getBoundingClientRect
getClientRects()
getClientRects() Element 介面的方法會回傳一組 DOMRect 物件,指示用戶端中每個 CSS 邊界框的邊界矩形。
function getClientRects(): DOMRectList
傳回
DOMRectList
繼承自 HTMLElement.getClientRects
getElementsByClassName(string)
Element 方法 getElementsByClassName() 會回傳一個指定的即時類別名稱或多個名稱。
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
參數
- classNames
-
string
傳回
HTMLCollectionOf<Element>
繼承自 HTMLElement.getElementsByClassName
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
參數
- qualifiedName
-
string
傳回
HTMLCollectionOf<Element>
繼承自 HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
該 Element.getElementsByTagName() 方法回傳活函數:搜尋指定元素的所有後代,但不會搜尋該元素本身。
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
參數
- qualifiedName
-
K
傳回
HTMLCollectionOf<HTMLElementTagNameMap[K]>
繼承自 HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
參數
- qualifiedName
-
K
傳回
HTMLCollectionOf<SVGElementTagNameMap[K]>
繼承自 HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
參數
- qualifiedName
-
K
傳回
HTMLCollectionOf<MathMLElementTagNameMap[K]>
繼承自 HTMLElement.getElementsByTagName
getElementsByTagName<K>(K)
警告
此 API 現已淘汰。
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
參數
- qualifiedName
-
K
傳回
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
繼承自 HTMLElement.getElementsByTagName
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>
參數
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- localName
-
string
傳回
HTMLCollectionOf<MathMLElement>
繼承自 HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
此 Element.getElementsByTagNameNS() 方法會回傳一個即時的 HTMLCollection,包含屬於指定命名空間的標籤名稱元素。
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
參數
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
傳回
HTMLCollectionOf<HTMLElement>
繼承自 HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
參數
- namespaceURI
-
"http://www.w3.org/2000/svg"
- localName
-
string
傳回
HTMLCollectionOf<SVGElement>
繼承自 HTMLElement.getElementsByTagNameNS
getElementsByTagNameNS(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
參數
- namespace
-
string | null
- localName
-
string
傳回
HTMLCollectionOf<Element>
繼承自 HTMLElement.getElementsByTagNameNS
getHTML(GetHTMLOptions)
getHTML()元素介面的方法用於將元素的 DOM 序列化成 HTML 字串。
function getHTML(options?: GetHTMLOptions): string
參數
- options
-
GetHTMLOptions
傳回
string
繼承自 HTMLElement.getHTML
getRootNode(GetRootNodeOptions)
getRootNode() Node 介面的方法會回傳上下文物件的根節點,若有陰影根節點,則可選擇性地包含。
function getRootNode(options?: GetRootNodeOptions): Node
參數
- options
-
GetRootNodeOptions
傳回
Node
繼承自 HTMLElement.getRootNode
hasAttribute(string)
該 Element.hasAttribute() 方法會回傳一個 布林 值,表示該指定元素是否具有指定的屬性。
function hasAttribute(qualifiedName: string): boolean
參數
- qualifiedName
-
string
傳回
boolean
繼承自 HTMLElement.hasAttribute
hasAttributeNS(string | null, string)
hasAttributeNS()元素介面的方法會回傳一個布林值,表示目前元素是否擁有指定屬性及其命名空間。
function hasAttributeNS(namespace: string | null, localName: string): boolean
參數
- namespace
-
string | null
- localName
-
string
傳回
boolean
繼承自 HTMLElement.hasAttributeNS
hasAttributes()
hasAttributes() Element 介面的方法會回傳一個布林值,表示目前元素是否擁有任何屬性。
function hasAttributes(): boolean
傳回
boolean
繼承自 HTMLElement.hasAttributes
hasChildNodes()
hasChildNodes()節點介面的方法會回傳一個布林值,指示該節點是否有子節點。
function hasChildNodes(): boolean
傳回
boolean
繼承自 HTMLElement.hasChildNodes
hasPointerCapture(number)
hasPointerCapture()指針捕獲方法,指針由給定指標 ID 所識別。
function hasPointerCapture(pointerId: number): boolean
參數
- pointerId
-
number
傳回
boolean
繼承自 HTMLElement.hasPointerCapture
hidePopover()
hidePopover() HTMLElement 介面的方法透過將彈出元素(即具有有效popover屬性的物件)從頂層移除並以 display: noneS 樣式化來隱藏。
function hidePopover()
繼承自 HTMLElement.hidePopover
insertAdjacentElement(InsertPosition, Element)
相 insertAdjacentElement() 對於所引用元素的方法。
function insertAdjacentElement(where: InsertPosition, element: Element): Element | null
參數
- where
-
InsertPosition
- element
-
Element
傳回
Element | null
繼承自 HTMLElement.insertAdjacentElement
insertAdjacentHTML(InsertPosition, string)
將 insertAdjacentHTML() 結果節點在指定位置進入 DOM 樹的方法。
function insertAdjacentHTML(position: InsertPosition, string: string)
參數
- position
-
InsertPosition
- string
-
string
繼承自 HTMLElement.insertAdjacentHTML
insertAdjacentText(InsertPosition, string)
insertAdjacentText()元素介面的方法,給定相對位置和一個字串,會在相對於該元素的位置插入一個新的文字節點。
function insertAdjacentText(where: InsertPosition, data: string)
參數
- where
-
InsertPosition
- data
-
string
繼承自 HTMLElement.insertAdjacentText
insertBefore<T>(T, Node | null)
insertBefore()節點介面的方法是將節點插入於參考節點之前,作為指定父節點的子節點。
function insertBefore<T>(node: T, child: Node | null): T
參數
- node
-
T
- child
-
Node | null
傳回
T
繼承自 HTMLElement.insertBefore
isDefaultNamespace(string | null)
isDefaultNamespace() Node 介面的方法接受命名空間 URI 作為參數。
function isDefaultNamespace(namespace: string | null): boolean
參數
- namespace
-
string | null
傳回
boolean
繼承自 HTMLElement.isDefaultNamespace
isEqualNode(Node | null)
isEqualNode()節點介面的方法測試兩個節點是否相等。
function isEqualNode(otherNode: Node | null): boolean
參數
- otherNode
-
Node | null
傳回
boolean
繼承自 HTMLElement.isEqualNode
isSameNode(Node | null)
isSameNode()節點介面的方法是一個傳統別名,用於嚴格===等號運算子。
function isSameNode(otherNode: Node | null): boolean
參數
- otherNode
-
Node | null
傳回
boolean
繼承自 HTMLElement.isSameNode
lookupNamespaceURI(string | null)
lookupNamespaceURI()節點介面的方法以前綴為參數,並在找到時回傳該節點對應的命名空間 URI(null若未找到則回傳)。
function lookupNamespaceURI(prefix: string | null): string | null
參數
- prefix
-
string | null
傳回
string | null
繼承自 HTMLElement.lookupNamespaceURI
lookupPrefix(string | null)
lookupPrefix() Node 介面的方法會回傳包含指定命名空間 URI 前綴的字串(若有null),若無則回傳。
function lookupPrefix(namespace: string | null): string | null
參數
- namespace
-
string | null
傳回
string | null
繼承自 HTMLElement.lookupPrefix
matches(string)
matches()元素介面的方法測試該元素是否會被指定的 CSS 選擇器選擇。
function matches(selectors: string): boolean
參數
- selectors
-
string
傳回
boolean
繼承自 HTMLElement.matches
normalize()
prepend((string | Node)[])
在節點的第一個子系之前插入節點,同時以對等的 Text 節點取代節點中的字串。
如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。
function prepend(nodes: (string | Node)[])
參數
- nodes
-
(string | Node)[]
繼承自 HTMLElement.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): E | null
參數
- selectors
-
string
傳回
E | null
繼承自 HTMLElement.querySelector
querySelector<K>(K)
傳回符合選取器之節點子代的第一個專案。
function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null
參數
- selectors
-
K
傳回
HTMLElementTagNameMap[K] | null
繼承自 HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
參數
- selectors
-
K
傳回
SVGElementTagNameMap[K] | null
繼承自 HTMLElement.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
參數
- selectors
-
K
傳回
MathMLElementTagNameMap[K] | null
繼承自 HTMLElement.querySelector
querySelector<K>(K)
警告
此 API 現已淘汰。
function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
參數
- selectors
-
K
傳回
HTMLElementDeprecatedTagNameMap[K] | null
繼承自 HTMLElement.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
參數
- selectors
-
string
傳回
NodeListOf<E>
繼承自 HTMLElement.querySelectorAll
querySelectorAll<K>(K)
傳回符合選取器之節點的所有元素子代。
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
參數
- selectors
-
K
傳回
NodeListOf<HTMLElementTagNameMap[K]>
繼承自 HTMLElement.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
參數
- selectors
-
K
傳回
NodeListOf<SVGElementTagNameMap[K]>
繼承自 HTMLElement.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
參數
- selectors
-
K
傳回
NodeListOf<MathMLElementTagNameMap[K]>
繼承自 HTMLElement.querySelectorAll
querySelectorAll<K>(K)
警告
此 API 現已淘汰。
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
參數
- selectors
-
K
傳回
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
繼承自 HTMLElement.querySelectorAll
releasePointerCapture(number)
先前 releasePointerCapture() 為特定(PointerEvent) 指標所設定的方法。
function releasePointerCapture(pointerId: number)
參數
- pointerId
-
number
繼承自 HTMLElement.releasePointerCapture
remove()
removeAttribute(string)
Element 方法 removeAttribute() 會從該元素中移除指定名稱的屬性。
function removeAttribute(qualifiedName: string)
參數
- qualifiedName
-
string
繼承自 HTMLElement.removeAttribute
removeAttributeNode(Attr)
removeAttributeNode()元素介面的方法會從元素中移除指定的 Attr 節點。
function removeAttributeNode(attr: Attr): Attr
參數
- attr
-
Attr
傳回
Attr
繼承自 HTMLElement.removeAttributeNode
removeAttributeNS(string | null, string)
removeAttributeNS()如果你在處理 HTML,且不需要指定請求屬性為特定命名空間的一部分,請使用 Element.removeAttribute() 方法。
function removeAttributeNS(namespace: string | null, localName: string)
參數
- namespace
-
string | null
- localName
-
string
繼承自 HTMLElement.removeAttributeNS
removeChild<T>(T)
removeChild()節點介面的方法會從 DOM 中移除一個子節點,並回傳被移除的節點。
function removeChild<T>(child: T): T
參數
- child
-
T
傳回
T
繼承自 HTMLElement.removeChild
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
參數
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
繼承自 HTMLElement.removeEventListener
removeEventListener<K>(K, (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, boolean | EventListenerOptions)
function removeEventListener<K>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions)
參數
- type
-
K
- listener
-
(this: HTMLElement, ev: HTMLElementEventMap[K]) => any
- options
-
boolean | EventListenerOptions
繼承自 HTMLElement.removeEventListener
replaceChild<T>(Node, T)
replaceChild()節點介面的方法會替換給定(父)節點中的子節點。
function replaceChild<T>(node: Node, child: T): T
參數
- node
-
Node
- child
-
T
傳回
T
繼承自 HTMLElement.replaceChild
replaceChildren((string | Node)[])
將節點的所有子系取代為節點,同時以對等的 Text 節點取代節點中的字串。
如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。
function replaceChildren(nodes: (string | Node)[])
參數
- nodes
-
(string | Node)[]
繼承自 HTMLElement.replaceChildren
replaceWith((string | Node)[])
以節點取代節點,同時以對等的 Text 節點取代節點中的字串。
如果違反節點樹狀結構的條件約束,則會擲回 “HierarchyRequestError” DOMException。
function replaceWith(nodes: (string | Node)[])
參數
- nodes
-
(string | Node)[]
繼承自 HTMLElement.replaceWith
requestFullscreen(FullscreenOptions)
此 Element.requestFullscreen() 方法會發出非同步請求,使元素以全螢幕模式顯示。
function requestFullscreen(options?: FullscreenOptions): Promise<void>
參數
- options
-
FullscreenOptions
傳回
Promise<void>
繼承自 HTMLElement.requestFullscreen
requestPointerLock(PointerLockOptions)
requestPointerLock() Element 介面的方法允許你非同步請求將指標鎖定在指定元素上。
function requestPointerLock(options?: PointerLockOptions): Promise<void>
參數
- options
-
PointerLockOptions
傳回
Promise<void>
繼承自 HTMLElement.requestPointerLock
scroll(number, number)
function scroll(x: number, y: number)
參數
- x
-
number
- y
-
number
繼承自 HTMLElement.scroll
scroll(ScrollToOptions)
scroll()元素介面的方法將元素捲動到特定元素內的特定座標集合。
function scroll(options?: ScrollToOptions)
參數
- options
-
ScrollToOptions
繼承自 HTMLElement.scroll
scrollBy(number, number)
function scrollBy(x: number, y: number)
參數
- x
-
number
- y
-
number
繼承自 HTMLElement.scrollBy
scrollBy(ScrollToOptions)
scrollBy()元素介面的方法是以指定數量滾動元素。
function scrollBy(options?: ScrollToOptions)
參數
- options
-
ScrollToOptions
繼承自 HTMLElement.scrollBy
scrollIntoView(boolean | ScrollIntoViewOptions)
元素介面的方法 scrollIntoView() 會捲動元素的祖先容器,使得被呼叫的元素 scrollIntoView() 對使用者可見。
function scrollIntoView(arg?: boolean | ScrollIntoViewOptions)
參數
- arg
-
boolean | ScrollIntoViewOptions
繼承自 HTMLElement.scrollIntoView
scrollTo(number, number)
function scrollTo(x: number, y: number)
參數
- x
-
number
- y
-
number
繼承自 HTMLElement.scrollTo
scrollTo(ScrollToOptions)
scrollTo()元素介面的方法會捲動到特定元素內的特定座標集合。
function scrollTo(options?: ScrollToOptions)
參數
- options
-
ScrollToOptions
繼承自 HTMLElement.scrollTo
setAttribute(string, string)
setAttribute()元素介面的方法設定指定元素屬性的值。
function setAttribute(qualifiedName: string, value: string)
參數
- qualifiedName
-
string
- value
-
string
繼承自 HTMLElement.setAttribute
setAttributeNode(Attr)
setAttributeNode() Element 介面的方法會在指定的元素中新增一個 Attr 節點。
function setAttributeNode(attr: Attr): Attr | null
參數
- attr
-
Attr
傳回
Attr | null
繼承自 HTMLElement.setAttributeNode
setAttributeNodeNS(Attr)
setAttributeNodeNS() Element 介面的方法會在元素中新增一個命名空間的 Attr 節點。
function setAttributeNodeNS(attr: Attr): Attr | null
參數
- attr
-
Attr
傳回
Attr | null
繼承自 HTMLElement.setAttributeNodeNS
setAttributeNS(string | null, string, string)
setAttributeNS 新增屬性或改變屬性的值,並使用指定命名空間與名稱。
function setAttributeNS(namespace: string | null, qualifiedName: string, value: string)
參數
- namespace
-
string | null
- qualifiedName
-
string
- value
-
string
繼承自 HTMLElement.setAttributeNS
setHTMLUnsafe(string)
setHTMLUnsafe()元素介面的方法用於將 HTML 字串解析成 DocumentFragment,並可選擇性地過濾出不想要的元素和屬性,以及不屬於上下文中的元素,然後用它來替換 DOM 中的元素子樹。
function setHTMLUnsafe(html: string)
參數
- html
-
string
繼承自 HTMLElement.setHTMLUnsafe
setPointerCapture(number)
未來 setPointerCapture() 指標事件的 捕獲目標 方法。
function setPointerCapture(pointerId: number)
參數
- pointerId
-
number
繼承自 HTMLElement.setPointerCapture
showPopover()
showPopover() HTMLElement 介面的方法會將一個Popover_API元素(即具有有效popover屬性的元素)加入頂層。
function showPopover()
繼承自 HTMLElement.showPopover
toggleAttribute(string, boolean)
現在 toggleAttribute() 的方法,若不存在則加現在,並加於給定元素。
function toggleAttribute(qualifiedName: string, force?: boolean): boolean
參數
- qualifiedName
-
string
- force
-
boolean
傳回
boolean
繼承自 HTMLElement.toggleAttribute
togglePopover(boolean)
togglePopover() HTMLElement 介面的方法會在隱藏狀態與顯示狀態之間切換一個 Popover_API 元素(即具有有效popover屬性的元素)。
function togglePopover(options?: boolean): boolean
參數
- options
-
boolean
傳回
boolean
繼承自 HTMLElement.togglePopover
webkitMatchesSelector(string)
function webkitMatchesSelector(selectors: string): boolean
參數
- selectors
-
string
傳回
boolean
繼承自 HTMLElement.webkitMatchesSelector