Document interface
Interfejs Document reprezentuje dowolną stronę internetową załadowaną w przeglądarce i służy jako punkt wejścia do zawartości strony internetowej, czyli drzewa DOM.
- Rozszerzenie
-
Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase
Właściwości
| alink |
Zwraca lub ustawia kolor aktywnego łącza w treści dokumentu. |
| all | Właściwość Interfejsu dokumentu tylko |
| anchors |
|
| applets | Właściwość |
| bg |
Przestarzała |
| body | Właściwość |
| character |
Właściwość |
| charset | |
| compat |
Właściwość |
| content |
Właściwość |
| cookie | Właściwość |
| current |
Właściwość |
| default |
W przeglądarkach |
| design |
|
| dir | Właściwość |
| doctype | Właściwość |
| document |
Właściwość |
| documentURI |
|
| domain | Właściwość |
| embeds |
|
| fg |
|
| forms | Właściwość |
| fragment |
Właściwość |
| fullscreen | Przestarzałe właściwości interfejsu dokumentu |
| fullscreen |
Właściwość tylko do |
| head | Właściwość |
| hidden | Właściwość |
| images | Właściwość |
| implementation | Właściwość |
| input |
|
| last |
Właściwość |
| link |
Właściwość |
| links | Właściwość |
| location | Właściwość |
| moz |
|
| ms |
|
| onfullscreenchange | |
| onfullscreenerror | |
| onpointerlockchange | |
| onpointerlockerror | |
| onreadystatechange | |
| onvisibilitychange | |
| owner |
Właściwość tylko |
| picture |
Właściwość tylko |
| plugins |
|
| ready |
Właściwość |
| referrer | Właściwość |
| root |
|
| scripts | Właściwość |
| scrolling |
|
| text |
|
| timeline | Właściwość |
| title | Właściwość |
| URL | Właściwość |
| visibility |
Właściwość |
| vlink |
Właściwość |
| webkit |
Właściwości dziedziczone
| active |
Zwraca najgłębszy element w dokumencie, za pomocą którego lub do którego są kierowane kluczowe zdarzenia. Jest to w przybliżeniu element fokusu w dokumencie. Na potrzeby tego interfejsu API, gdy kontekst przeglądania podrzędnego jest skoncentrowany, jego kontener koncentruje się na kontekście przeglądania nadrzędnego. Jeśli na przykład użytkownik przenosi fokus do kontrolki tekstu w elemedycie iframe, element iframe jest elementem zwracanym przez interfejs API activeElement w dokumencie węzła elementu iframe. Podobnie, gdy element fokus znajduje się w innym drzewie węzłów niż documentOrShadowRoot, zwracany element będzie hostem znajdującym się w tym samym drzewie węzłów co documentOrShadowRoot, jeśli element documentOrShadowRoot jest elementem w tle, w tym inkluzywnym elementem fokusu, i null, jeśli nie. |
| adopted |
|
| ATTRIBUTE_NODE | |
| baseURI | Właściwość tylko |
| CDATA_SECTION_NODE | węzeł jest węzłem CDATASection. |
| child |
|
| child |
Właściwość tylko |
| children | Zwraca elementy podrzędne. |
| COMMENT_NODE | węzeł jest węzłem Komentarz. |
| DOCUMENT_FRAGMENT_NODE | węzeł jest węzłem DocumentFragment. |
| DOCUMENT_NODE | węzeł jest dokumentem. |
| DOCUMENT_POSITION_CONTAINED_BY | Ustaw, gdy inne jest elementem potomnym węzła. |
| DOCUMENT_POSITION_CONTAINS | Ustaw, gdy inny jest elementem nadrzędnym węzła. |
| DOCUMENT_POSITION_DISCONNECTED | Ustaw, gdy węzeł i inne nie znajdują się w tym samym drzewie. |
| DOCUMENT_POSITION_FOLLOWING | Ustaw, gdy inny element jest następujący po węźle. |
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | |
| DOCUMENT_POSITION_PRECEDING | Ustaw, gdy inny element jest poprzedzający węzeł. |
| DOCUMENT_TYPE_NODE | węzeł jest dokumentem. |
| ELEMENT_NODE | node jest elementem. |
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
Właściwość tylko |
| first |
Zwraca pierwsze dziecko, które jest elementem, i null w przeciwnym razie. |
| fonts | |
| fullscreen |
Zwraca element pełnoekranowy dokumentu. |
| is |
Właściwość tylko |
| last |
Właściwość tylko |
| last |
Zwraca ostatni element podrzędny, który jest elementem i ma wartość null w przeciwnym razie. |
| next |
Właściwość tylko |
| node |
Właściwość tylko |
| node |
Właściwość tylko |
| node |
Właściwość |
| NOTATION_NODE | |
| 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 | |
| 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 | Dostępne tylko w bezpiecznych kontekstach. |
| 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 | |
| parent |
Właściwość tylko |
| parent |
Właściwość tylko |
| picture |
|
| pointer |
|
| previous |
Właściwość tylko |
| PROCESSING_INSTRUCTION_NODE | węzeł jest węzłem ProcessingInstruction. |
| style |
|
| TEXT_NODE | węzeł jest węzłem tekstowym. |
Metody
| add |
|
| add |
Metoda |
| adopt |
|
| capture |
|
| caret |
Metoda |
| caret |
|
| clear() | Metoda |
| close() | Metoda |
| create |
Metoda |
| create |
Metoda |
| create |
|
| create |
|
| create |
Tworzy nowy pusty element DocumentFragment, do którego można dodać węzły DOM w celu skompilowania drzewa DOM poza ekranem. |
| create |
|
| create |
W dokumencie |
| create |
|
| create |
|
| create |
Tworzy element z określonym identyfikatorem URI przestrzeni nazw i kwalifikowaną nazwą. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
Tworzy zdarzenie określonego typu. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
Metoda |
| create |
|
| create |
Metoda |
| create |
Tworzy nowy węzeł Tekst. |
| create |
Metoda |
| exec |
Metoda |
| exit |
Metoda |
| exit |
|
| exit |
|
| get |
Zwraca pierwszy element w elementach potomnych węzła, którego identyfikator jest elementem elementId. |
| get |
|
| get |
Metoda |
| get |
|
| get |
Metoda |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
Zwraca listę elementów o podanej nazwie tagu należącej do danej przestrzeni nazw. |
| get |
|
| get |
|
| get |
Metoda |
| has |
Metoda |
| has |
|
| import |
Metoda obiektu |
| open(string | URL, string, string) | |
| open(string, string) | Metoda |
| query |
Metoda |
| query |
|
| query |
Metoda |
| query |
Metoda |
| query |
|
| release |
|
| remove |
|
| remove |
Metoda |
| request |
|
| start |
Metoda |
| write(string[]) | Metoda |
| writeln(string[]) | Metoda |
Metody dziedziczone
| append((string | Node)[]) | Wstawia węzły po ostatnim elemencie podrzędnym węzła, zastępując ciągi w węzłach równoważnymi węzłami tekstowymi. Zgłasza wyjątek DOMException "HierarchyRequestError", jeśli zostaną naruszone ograniczenia drzewa węzłów. |
| append |
Metoda |
| clone |
Metoda |
| compare |
|
| contains(Node | null) |
|
| create |
|
| create |
|
| dispatch |
|
| element |
|
| elements |
|
| evaluate(string, Node, XPath |
|
| get |
|
| get |
Metoda |
| has |
|
| insert |
Metoda |
| is |
|
| is |
|
| is |
|
| lookup |
Metoda |
| lookup |
Metoda |
| normalize() | Metoda |
| prepend((string | Node)[]) | Wstawia węzły przed pierwszym elementem podrzędnym węzła, zastępując ciągi w węzłach równoważnymi węzłami tekstowymi. Zgłasza wyjątek DOMException "HierarchyRequestError", jeśli zostaną naruszone ograniczenia drzewa węzłów. |
| query |
|
| query |
Zwraca pierwszy element, który jest elementem potomnym węzła, który pasuje do selektorów. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
Zwraca wszystkie elementy potomne węzła, które pasują do selektorów. |
| query |
|
| query |
|
| query |
|
| remove |
Metoda |
| replace |
Metoda |
| replace |
Zastąp wszystkie elementy podrzędne węzłów węzłami węzłami, zastępując ciągi w węzłach równoważnymi węzłami tekstowymi. Zgłasza wyjątek DOMException "HierarchyRequestError", jeśli zostaną naruszone ograniczenia drzewa węzłów. |
Szczegóły właściwości
alinkColor
Zwraca lub ustawia kolor aktywnego łącza w treści dokumentu.
alinkColor: string
Wartość właściwości
string
all
Właściwość Interfejsu dokumentu tylko all do odczytu zwraca element HTMLAllCollection zakorzeniony w węźle dokumentu.
all: HTMLAllCollection
Wartość właściwości
HTMLAllCollection
anchors
anchors Właściwość tylko do odczytu kolekcji HTMLCollection.
anchors: HTMLCollectionOf<HTMLAnchorElement>
Wartość właściwości
HTMLCollectionOf<HTMLAnchorElement>
applets
Właściwość applets Document zwraca pusty element HTMLCollection.
applets: HTMLCollection
Wartość właściwości
HTMLCollection
bgColor
Przestarzała bgColor właściwość pobiera lub ustawia kolor tła bieżącego dokumentu.
bgColor: string
Wartość właściwości
string
body
Właściwość Document.body reprezentuje null , jeśli taki element nie istnieje.
body: HTMLElement
Wartość właściwości
HTMLElement
characterSet
Właściwość Document.characterSet tylko do odczytu zwraca kodowanie znaków dokumentu, z którego jest obecnie renderowany.
characterSet: string
Wartość właściwości
string
charset
Ostrzeżenie
Ten interfejs API jest już przestarzały.
This is a legacy alias of characterSet.
charset: string
Wartość właściwości
string
compatMode
Właściwość Document.compatMode tylko do odczytu wskazuje, czy dokument jest renderowany w trybie dziwactwa, czy w trybie standardów.
compatMode: string
Wartość właściwości
string
contentType
Właściwość Document.contentType tylko do odczytu zwraca typ MIME renderowany jako dokument.
contentType: string
Wartość właściwości
string
cookie
Właściwość cookie Document umożliwia odczytywanie i zapisywanie plików cookie skojarzonych z dokumentem.
cookie: string
Wartość właściwości
string
currentScript
Właściwość Document.currentScript zwraca element skryptu, którego skrypt jest obecnie przetwarzany i nie jest modułem JavaScript.
currentScript: HTMLOrSVGScriptElement | null
Wartość właściwości
HTMLOrSVGScriptElement | null
defaultView
W przeglądarkach document.defaultView zwraca właściwość Ta właściwość jest tylko do odczytu.
defaultView: (Window & typeof globalThis) | null
Wartość właściwości
(Window & typeof globalThis) | null
designMode
document.designMode określa, czy cały dokument można edytować.
designMode: string
Wartość właściwości
string
dir
Właściwość Document.dir jest ciągiem reprezentującym kierunek tekstu dokumentu, niezależnie od tego, czy od lewej do prawej (wartość domyślna) czy od prawej do lewej.
dir: string
Wartość właściwości
string
doctype
Właściwość doctype tylko do odczytu interfejsu Document jest obiektem DocumentType reprezentującym dokument skojarzony z bieżącym dokumentem.
doctype: DocumentType | null
Wartość właściwości
DocumentType | null
documentElement
Właściwość documentElement tylko do odczytu interfejsu Document zwraca przykładowy element HTML dla dokumentów HTML).
documentElement: HTMLElement
Wartość właściwości
HTMLElement
documentURI
documentURI Właściwość tylko do odczytu ciągu A.
documentURI: string
Wartość właściwości
string
domain
Właściwość domain interfejsu Document pobiera/ustawia część domeny źródła bieżącego dokumentu, co jest używane przez zasady tego samego źródła.
domain: string
Wartość właściwości
string
embeds
embeds Właściwość tylko do odczytu kolekcji HTMLCollection.
embeds: HTMLCollectionOf<HTMLEmbedElement>
Wartość właściwości
HTMLCollectionOf<HTMLEmbedElement>
fgColor
fgColor pobiera/ustawia kolor pierwszego planu lub kolor tekstu bieżącego dokumentu.
fgColor: string
Wartość właściwości
string
forms
Właściwość forms tylko do odczytu interfejsu Document zwraca element HTMLCollection zawierający wszystkie elementy formularza zawarte w dokumencie.
forms: HTMLCollectionOf<HTMLFormElement>
Wartość właściwości
HTMLCollectionOf<HTMLFormElement>
fragmentDirective
Właściwość fragmentDirective tylko do odczytu interfejsu Document zwraca element FragmentDirective dla bieżącego dokumentu.
fragmentDirective: FragmentDirective
Wartość właściwości
FragmentDirective
fullscreen
Przestarzałe właściwości interfejsu dokumentu fullscreen tylko do odczytu zgłasza, czy dokument aktualnie wyświetla zawartość w trybie pełnoekranowym.
fullscreen: boolean
Wartość właściwości
boolean
fullscreenEnabled
Właściwość tylko do fullscreenEnabled odczytu w interfejsie dokumentu wskazuje, czy jest dostępny tryb pełnoekranowy.
fullscreenEnabled: boolean
Wartość właściwości
boolean
head
Właściwość head tylko do odczytu interfejsu Document zwraca element główny bieżącego dokumentu.
head: HTMLHeadElement
Wartość właściwości
HTMLHeadElement
hidden
Właściwość Document.hidden tylko do odczytu zwraca wartość logiczną wskazującą, czy strona jest uważana za ukrytą, czy nie.
hidden: boolean
Wartość właściwości
boolean
images
Właściwość images tylko do odczytu interfejsu Document zwraca kolekcję obrazów w bieżącym dokumencie HTML.
images: HTMLCollectionOf<HTMLImageElement>
Wartość właściwości
HTMLCollectionOf<HTMLImageElement>
implementation
Właściwość Document.implementation zwraca obiekt DOMImplementation.
implementation: DOMImplementation
Wartość właściwości
DOMImplementation
inputEncoding
Ostrzeżenie
Ten interfejs API jest już przestarzały.
This is a legacy alias of characterSet.
inputEncoding: string
Wartość właściwości
string
lastModified
Właściwość lastModified interfejsu Document zwraca ciąg zawierający datę i godzinę lokalną, w której ostatnio zmodyfikowano bieżący dokument.
lastModified: string
Wartość właściwości
string
linkColor
Właściwość Document.linkColor pobiera/ustawia kolor łączy w dokumencie.
linkColor: string
Wartość właściwości
string
links
Właściwość links tylko do odczytu interfejsu Document zwraca kolekcję wszystkich elementów obszaru i elementy w dokumencie z wartością atrybutu href.
links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
Wartość właściwości
HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
location
Właściwość Document.location tylko do odczytu zwraca wartość i udostępnia metody zmiany tego adresu URL i ładowania innego adresu URL.
Location location
Wartość właściwości
Location
mozCancelFullScreen
mozCancelFullScreen: any
Wartość właściwości
any
msExitFullscreen
msExitFullscreen: any
Wartość właściwości
any
onfullscreenchange
onfullscreenchange: (this: Document, ev: Event) => any | null
Wartość właściwości
(this: Document, ev: Event) => any | null
onfullscreenerror
onfullscreenerror: (this: Document, ev: Event) => any | null
Wartość właściwości
(this: Document, ev: Event) => any | null
onpointerlockchange
onpointerlockchange: (this: Document, ev: Event) => any | null
Wartość właściwości
(this: Document, ev: Event) => any | null
onpointerlockerror
onpointerlockerror: (this: Document, ev: Event) => any | null
Wartość właściwości
(this: Document, ev: Event) => any | null
onreadystatechange
onreadystatechange: (this: Document, ev: Event) => any | null
Wartość właściwości
(this: Document, ev: Event) => any | null
onvisibilitychange
onvisibilitychange: (this: Document, ev: Event) => any | null
Wartość właściwości
(this: Document, ev: Event) => any | null
ownerDocument
Właściwość tylko ownerDocument do odczytu interfejsu Node zwraca obiekt dokumentu najwyższego poziomu węzła.
ownerDocument: null
Wartość właściwości
null
pictureInPictureEnabled
Właściwość tylko pictureInPictureEnabled do odczytu dostępnej.
pictureInPictureEnabled: boolean
Wartość właściwości
boolean
plugins
plugins Właściwość tylko do odczytu zawierająca co najmniej jeden element HTMLEmbedElement reprezentujący element HTMLCollection.
plugins: HTMLCollectionOf<HTMLEmbedElement>
Wartość właściwości
HTMLCollectionOf<HTMLEmbedElement>
readyState
Właściwość Document.readyState opisuje stan ładowania dokumentu.
readyState: DocumentReadyState
Wartość właściwości
DocumentReadyState
referrer
Właściwość Document.referrer zwraca identyfikator URI strony połączonej z tą stroną.
referrer: string
Wartość właściwości
string
rootElement
Document.rootElement Zwraca element, który jest elementem głównym dokumentu, jeśli jest to dokument.
rootElement: SVGSVGElement | null
Wartość właściwości
SVGSVGElement | null
scripts
Właściwość scripts interfejsu Document zwraca listę elementów skryptu w dokumencie.
scripts: HTMLCollectionOf<HTMLScriptElement>
Wartość właściwości
HTMLCollectionOf<HTMLScriptElement>
scrollingElement
scrollingElement Właściwość tylko do odczytu przewija dokument.
scrollingElement: Element | null
Wartość właściwości
Element | null
textContent
timeline
Właściwość timeline readonly interfejsu Document reprezentuje domyślną oś czasu bieżącego dokumentu.
timeline: DocumentTimeline
Wartość właściwości
DocumentTimeline
title
Właściwość document.title pobiera lub ustawia bieżący tytuł dokumentu.
title: string
Wartość właściwości
string
URL
Właściwość URL tylko do odczytu interfejsu Document zwraca lokalizację dokumentu jako ciąg.
URL: string
Wartość właściwości
string
visibilityState
Właściwość Document.visibilityState tylko do odczytu zwraca widoczność dokumentu.
visibilityState: DocumentVisibilityState
Wartość właściwości
DocumentVisibilityState
vlinkColor
Właściwość Document.vlinkColor pobiera/ustawia kolor łączy, które użytkownik odwiedził w dokumencie.
vlinkColor: string
Wartość właściwości
string
webkitExitFullscreen
webkitExitFullscreen: void
Wartość właściwości
void
Szczegóły właściwości dziedziczonej
activeElement
Zwraca najgłębszy element w dokumencie, za pomocą którego lub do którego są kierowane kluczowe zdarzenia. Jest to w przybliżeniu element fokusu w dokumencie.
Na potrzeby tego interfejsu API, gdy kontekst przeglądania podrzędnego jest skoncentrowany, jego kontener koncentruje się na kontekście przeglądania nadrzędnego. Jeśli na przykład użytkownik przenosi fokus do kontrolki tekstu w elemedycie iframe, element iframe jest elementem zwracanym przez interfejs API activeElement w dokumencie węzła elementu iframe.
Podobnie, gdy element fokus znajduje się w innym drzewie węzłów niż documentOrShadowRoot, zwracany element będzie hostem znajdującym się w tym samym drzewie węzłów co documentOrShadowRoot, jeśli element documentOrShadowRoot jest elementem w tle, w tym inkluzywnym elementem fokusu, i null, jeśli nie.
activeElement: Element | null
Wartość właściwości
Element | null
dziedziczone z DocumentOrShadowRoot.activeElement
adoptedStyleSheets
adoptedStyleSheets: CSSStyleSheet[]
Wartość właściwości
CSSStyleSheet[]
dziedziczone z DocumentOrShadowRoot.adoptStyleSheets
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
Wartość właściwości
2
dziedziczone z Node.ATTRIBUTE_NODE
baseURI
Właściwość tylko baseURI do odczytu interfejsu Node zwraca bezwzględny podstawowy adres URL dokumentu zawierającego węzeł.
baseURI: string
Wartość właściwości
string
dziedziczone z Node.baseURI
CDATA_SECTION_NODE
węzeł jest węzłem CDATASection.
CDATA_SECTION_NODE: 4
Wartość właściwości
4
dziedziczone z Node.CDATA_SECTION_NODE
childElementCount
childElementCount: number
Wartość właściwości
number
dziedziczone z ParentNode.childElementCount
childNodes
Właściwość tylko childNodes do odczytu interfejsu Node zwraca dynamiczny pierwszy węzeł podrzędny jest przypisany indeks 0.
childNodes: NodeListOf<ChildNode>
Wartość właściwości
NodeListOf<ChildNode>
dziedziczone z węzłów Node.childNodes
children
Zwraca elementy podrzędne.
children: HTMLCollection
Wartość właściwości
HTMLCollection
dziedziczone z ParentNode.children
COMMENT_NODE
węzeł jest węzłem Komentarz.
COMMENT_NODE: 8
Wartość właściwości
8
dziedziczone z Node.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
węzeł jest węzłem DocumentFragment.
DOCUMENT_FRAGMENT_NODE: 11
Wartość właściwości
11
dziedziczone z Node.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
węzeł jest dokumentem.
DOCUMENT_NODE: 9
Wartość właściwości
9
dziedziczone z Node.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
Ustaw, gdy inne jest elementem potomnym węzła.
DOCUMENT_POSITION_CONTAINED_BY: 16
Wartość właściwości
16
dziedziczone z Node.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
Ustaw, gdy inny jest elementem nadrzędnym węzła.
DOCUMENT_POSITION_CONTAINS: 8
Wartość właściwości
8
dziedziczone z Node.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
Ustaw, gdy węzeł i inne nie znajdują się w tym samym drzewie.
DOCUMENT_POSITION_DISCONNECTED: 1
Wartość właściwości
1
dziedziczone z Node.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Ustaw, gdy inny element jest następujący po węźle.
DOCUMENT_POSITION_FOLLOWING: 4
Wartość właściwości
4
dziedziczone z Node.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Wartość właściwości
32
dziedziczone z Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Ustaw, gdy inny element jest poprzedzający węzeł.
DOCUMENT_POSITION_PRECEDING: 2
Wartość właściwości
2
dziedziczone z Node.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
węzeł jest dokumentem.
DOCUMENT_TYPE_NODE: 10
Wartość właściwości
10
dziedziczone z Node.DOCUMENT_TYPE_NODE
ELEMENT_NODE
node jest elementem.
ELEMENT_NODE: 1
Wartość właściwości
1
dziedziczone z Node.ELEMENT_NODE
ENTITY_NODE
ENTITY_NODE: 6
Wartość właściwości
6
dziedziczone z Node.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
Wartość właściwości
5
dziedziczone z Node.ENTITY_REFERENCE_NODE
firstChild
Właściwość tylko firstChild do odczytu interfejsu Node zwraca pierwsze podrzędne węzła w drzewie lub null jeśli węzeł nie ma elementów podrzędnych.
firstChild: ChildNode | null
Wartość właściwości
ChildNode | null
dziedziczone z Node.firstChild
firstElementChild
Zwraca pierwsze dziecko, które jest elementem, i null w przeciwnym razie.
firstElementChild: Element | null
Wartość właściwości
Element | null
dziedziczone z ParentNode.firstElementChild
fonts
fonts: FontFaceSet
Wartość właściwości
FontFaceSet
dziedziczone z FontFaceSource.fonts
fullscreenElement
Zwraca element pełnoekranowy dokumentu.
fullscreenElement: Element | null
Wartość właściwości
Element | null
dziedziczone z DocumentOrShadowRoot.fullscreenElement
isConnected
Właściwość tylko isConnected do odczytu interfejsu Node zwraca wartość logiczną wskazującą, czy węzeł jest połączony (bezpośrednio lub pośrednio) z obiektem Document.
isConnected: boolean
Wartość właściwości
boolean
dziedziczone z węzła.isConnected
lastChild
Właściwość tylko lastChild do odczytu interfejsu Node zwraca ostatni element podrzędny węzła lub null jeśli nie ma węzłów podrzędnych.
lastChild: ChildNode | null
Wartość właściwości
ChildNode | null
dziedziczone z węzła.lastChild
lastElementChild
Zwraca ostatni element podrzędny, który jest elementem i ma wartość null w przeciwnym razie.
lastElementChild: Element | null
Wartość właściwości
Element | null
dziedziczone z ParentNode.lastElementChild
nextSibling
Właściwość tylko nextSibling do odczytu interfejsu Node zwraca węzeł bezpośrednio po określonym w węzłach nadrzędnych Node.childNodes lub zwraca null , jeśli określony węzeł jest ostatnim elementem podrzędnym w elemercie nadrzędnym.
nextSibling: ChildNode | null
Wartość właściwości
ChildNode | null
dziedziczone z węzła.nextSibling
nodeName
Właściwość tylko nodeName do odczytu węzła zwraca nazwę bieżącego węzła jako ciąg.
nodeName: string
Wartość właściwości
string
dziedziczone z Node.nodeName
nodeType
Właściwość tylko nodeType do odczytu interfejsu node jest liczbą całkowitą, która identyfikuje, czym jest węzeł.
nodeType: number
Wartość właściwości
number
dziedziczone z Node.nodeType
nodeValue
Właściwość nodeValue interfejsu Node zwraca lub ustawia wartość bieżącego węzła.
nodeValue: string | null
Wartość właściwości
string | null
dziedziczone z Node.nodeValue
NOTATION_NODE
NOTATION_NODE: 12
Wartość właściwości
12
dziedziczone z Node.NOTATION_NODE
onabort
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: UIEvent) => any | null
dziedziczone z GlobalEventHandlers.onabort
onanimationcancel
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
dziedziczone z GlobalEventHandlers.onanimationcancel
onanimationend
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
dziedziczone z GlobalEventHandlers.onanimationend
onanimationiteration
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
dziedziczone z GlobalEventHandlers.onanimationiteration
onanimationstart
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
dziedziczone z GlobalEventHandlers.onanimationstart
onauxclick
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onauxclick
onbeforeinput
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: InputEvent) => any | null
dziedziczone z GlobalEventHandlers.onbeforeinput
onbeforematch
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
Dziedziczone z GlobalEventHandlers.onbeforematch
onbeforetoggle
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Dziedziczone z GlobalEventHandlers.onbeforetoggle
onblur
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
dziedziczone z GlobalEventHandlers.onblur
oncancel
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.oncancel
oncanplay
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.oncanplay
oncanplaythrough
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.oncanplaythrough
onchange
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onchange
onclick
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onclick
onclose
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onclose
oncontextlost
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
Dziedziczone z GlobalEventHandlers.oncontextlost
oncontextmenu
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.oncontextmenu
oncontextrestored
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
Dziedziczone z GlobalEventHandlers.oncontextrestored
oncopy
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Dziedziczone z GlobalEventHandlers.oncopy
oncuechange
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.oncuechange
oncut
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Dziedziczone z GlobalEventHandlers.oncut
ondblclick
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.ondblclick
ondrag
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondrag
ondragend
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondragend
ondragenter
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondragenter
ondragleave
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondragleave
ondragover
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondragover
ondragstart
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondragstart
ondrop
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: DragEvent) => any | null
dziedziczone z GlobalEventHandlers.ondrop
ondurationchange
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.ondurationchange
onemptied
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onemptied
onended
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onended
onerror
onerror: OnErrorEventHandler
Wartość właściwości
OnErrorEventHandler
dziedziczone z GlobalEventHandlers.onerror
onfocus
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
dziedziczone z GlobalEventHandlers.onfocus
onformdata
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
dziedziczone z GlobalEventHandlers.onformdata
ongotpointercapture
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.ongotpointercapture
oninput
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.oninput
oninvalid
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.oninvalid
onkeydown
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
dziedziczone z GlobalEventHandlers.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
dziedziczone z GlobalEventHandlers.onkeypress
onkeyup
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
dziedziczone z GlobalEventHandlers.onkeyup
onload
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onload
onloadeddata
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onloadeddata
onloadedmetadata
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onloadedmetadata
onloadstart
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onloadstart
onlostpointercapture
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onlostpointercapture
onmousedown
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmousedown
onmouseenter
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmouseenter
onmouseleave
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmouseleave
onmousemove
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmousemove
onmouseout
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmouseout
onmouseover
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmouseover
onmouseup
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
dziedziczone z GlobalEventHandlers.onmouseup
onpaste
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Dziedziczone z GlobalEventHandlers.onpaste
onpause
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onpause
onplay
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onplay
onplaying
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onplaying
onpointercancel
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointercancel
onpointerdown
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointerdown
onpointerenter
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointerenter
onpointerleave
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointerleave
onpointermove
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointermove
onpointerout
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointerout
onpointerover
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointerover
onpointerrawupdate
Dostępne tylko w bezpiecznych kontekstach.
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
Dziedziczone z GlobalEventHandlers.onpointerrawupdate
onpointerup
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
dziedziczone z GlobalEventHandlers.onpointerup
onprogress
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
dziedziczone z GlobalEventHandlers.onprogress
onratechange
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onratechange
onreset
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onreset
onresize
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: UIEvent) => any | null
dziedziczone z GlobalEventHandlers.onresize
onscroll
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onscroll
onscrollend
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
Dziedziczone z GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
dziedziczone z GlobalEventHandlers.onsecuritypolicyviolation
onseeked
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onseeked
onseeking
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onseeking
onselect
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onselect
onselectionchange
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onselectionchange
onselectstart
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onselectstart
onslotchange
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onslotchange
onstalled
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onstalled
onsubmit
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
dziedziczone z GlobalEventHandlers.onsubmit
onsuspend
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onsuspend
ontimeupdate
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.ontimeupdate
ontoggle
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
dziedziczone z przełącznika GlobalEventHandlers.
ontouchcancel
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
dziedziczone z GlobalEventHandlers.ontouchcancel
ontouchend
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
dziedziczone z GlobalEventHandlers.ontouchend
ontouchmove
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
dziedziczone z GlobalEventHandlers.ontouchmove
ontouchstart
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
dziedziczone z GlobalEventHandlers.ontouchstart
ontransitioncancel
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
dziedziczone z GlobalEventHandlers.ontransitioncancel
ontransitionend
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
dziedziczone z GlobalEventHandlers.ontransitionend
ontransitionrun
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
dziedziczone z GlobalEventHandlers.ontransitionrun
ontransitionstart
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
dziedziczone z GlobalEventHandlers.ontransitionstart
onvolumechange
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onvolumechange
onwaiting
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onwaiting
onwebkitanimationend
Ostrzeżenie
Ten interfejs API jest już przestarzały.
This is a legacy alias of onanimationend.
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onwebkitanimationend
onwebkitanimationiteration
Ostrzeżenie
Ten interfejs API jest już przestarzały.
This is a legacy alias of onanimationiteration.
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onwebkitanimationiteration
onwebkitanimationstart
Ostrzeżenie
Ten interfejs API jest już przestarzały.
This is a legacy alias of onanimationstart.
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onwebkitanimationstart
onwebkittransitionend
Ostrzeżenie
Ten interfejs API jest już przestarzały.
This is a legacy alias of ontransitionend.
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: Event) => any | null
dziedziczone z GlobalEventHandlers.onwebkittransitionend
onwheel
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Wartość właściwości
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
dziedziczone z GlobalEventHandlers.onwheel
parentElement
Właściwość tylko parentElement do odczytu interfejsu node zwraca nadrzędny element węzła DOM lub null jeśli węzeł nie ma elementu nadrzędnego lub jego element nadrzędny nie jest elementem DOM.
parentElement: HTMLElement | null
Wartość właściwości
HTMLElement | null
dziedziczone z węzła.parentElement
parentNode
Właściwość tylko parentNode do odczytu interfejsu Node zwraca element nadrzędny określonego węzła w drzewie DOM.
parentNode: ParentNode | null
Wartość właściwości
ParentNode | null
dziedziczone z węzła.parentNode
pictureInPictureElement
pictureInPictureElement: Element | null
Wartość właściwości
Element | null
dziedziczone z DocumentOrShadowRoot.pictureInPictureElement
pointerLockElement
pointerLockElement: Element | null
Wartość właściwości
Element | null
dziedziczone z DocumentOrShadowRoot.pointerLockElement
previousSibling
Właściwość tylko previousSibling do odczytu interfejsu Node zwraca węzeł bezpośrednio poprzedzający określony w elemecie nadrzędnym lub null jeśli określony węzeł jest pierwszym na tej liście.
previousSibling: ChildNode | null
Wartość właściwości
ChildNode | null
dziedziczone z węzła.previousSibling
PROCESSING_INSTRUCTION_NODE
węzeł jest węzłem ProcessingInstruction.
PROCESSING_INSTRUCTION_NODE: 7
Wartość właściwości
7
dziedziczone z Node.PROCESSING_INSTRUCTION_NODE
styleSheets
styleSheets: StyleSheetList
Wartość właściwości
StyleSheetList
dziedziczone z DocumentOrShadowRoot.styleSheets
TEXT_NODE
węzeł jest węzłem tekstowym.
TEXT_NODE: 3
Wartość właściwości
3
dziedziczone z Node.TEXT_NODE
Szczegóły metody
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parametry
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)
Metoda addEventListener() interfejsu EventTarget konfiguruje funkcję, która będzie wywoływana za każdym razem, gdy określone zdarzenie zostanie dostarczone do obiektu docelowego.
function addEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parametry
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
adoptNode<T>(T)
Document.adoptNode() transferuje węzeł/dom z innego dokumentu do dokumentu metody.
function adoptNode<T>(node: T): T
Parametry
- node
-
T
Zwraca
T
captureEvents()
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)
Metoda caretPositionFromPoint() interfejsu Document zwraca obiekt CaretPosition zawierający węzeł DOM wraz z przesunięciem karetki i karetki w tym węźle.
function caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null
Parametry
- x
-
number
- y
-
number
- options
-
CaretPositionFromPointOptions
Zwraca
CaretPosition | null
caretRangeFromPoint(number, number)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function caretRangeFromPoint(x: number, y: number): Range | null
Parametry
- x
-
number
- y
-
number
Zwraca
Range | null
clear()
Metoda Document.clear() nic nie robi, ale nie zgłasza żadnego błędu.
function clear()
close()
Metoda Document.close() kończy zapisywanie w dokumencie, otwieranym za pomocą pliku Document.open().
function close()
createAttribute(string)
Metoda Document.createAttribute() tworzy nowy węzeł atrybutu i zwraca go.
function createAttribute(localName: string): Attr
Parametry
- localName
-
string
Zwraca
Attr
createAttributeNS(string | null, string)
Metoda Document.createAttributeNS() tworzy nowy węzeł atrybutu z określonym identyfikatorem URI przestrzeni nazw i kwalifikowaną nazwą i zwraca go.
function createAttributeNS(namespace: string | null, qualifiedName: string): Attr
Parametry
- namespace
-
string | null
- qualifiedName
-
string
Zwraca
Attr
createCDATASection(string)
createCDATASection() Tworzy nowy węzeł sekcji CDATA i zwraca go.
function createCDATASection(data: string): CDATASection
Parametry
- data
-
string
Zwraca
CDATASection
createComment(string)
createComment() tworzy nowy węzeł komentarza i zwraca go.
function createComment(data: string): Comment
Parametry
- data
-
string
Zwraca
Comment
createDocumentFragment()
Tworzy nowy pusty element DocumentFragment, do którego można dodać węzły DOM w celu skompilowania drzewa DOM poza ekranem.
function createDocumentFragment(): DocumentFragment
Zwraca
DocumentFragment
createElement(string, ElementCreationOptions)
function createElement(tagName: string, options?: ElementCreationOptions): HTMLElement
Parametry
- tagName
-
string
- options
-
ElementCreationOptions
Zwraca
HTMLElement
createElement<K>(K, ElementCreationOptions)
W dokumencie document.createElement() HTML metoda tworzy element HTML określony przez localNameelement lub HTMLUnknownElement, jeśli localName nie jest rozpoznawany.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]
Parametry
- tagName
-
K
- options
-
ElementCreationOptions
Zwraca
HTMLElementTagNameMap[K]
createElement<K>(K, ElementCreationOptions)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]
Parametry
- tagName
-
K
- options
-
ElementCreationOptions
Zwraca
HTMLElementDeprecatedTagNameMap[K]
createElementNS("http://www.w3.org/1998/Math/MathML", string)
function createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement
Parametry
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
string
Zwraca
MathMLElement
createElementNS("http://www.w3.org/1999/xhtml", string)
Tworzy element z określonym identyfikatorem URI przestrzeni nazw i kwalifikowaną nazwą.
function createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement
Parametry
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- qualifiedName
-
string
Zwraca
HTMLElement
createElementNS("http://www.w3.org/2000/svg", string)
function createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
Parametry
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
string
Zwraca
SVGElement
createElementNS(string | null, string, ElementCreationOptions)
function createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element
Parametry
- namespaceURI
-
string | null
- qualifiedName
-
string
- options
-
ElementCreationOptions
Zwraca
Element
createElementNS(string | null, string, string | ElementCreationOptions)
function createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element
Parametry
- namespace
-
string | null
- qualifiedName
-
string
- options
-
string | ElementCreationOptions
Zwraca
Element
createElementNS<K>("http://www.w3.org/1998/Math/MathML", K)
function createElementNS<K>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]
Parametry
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
K
Zwraca
MathMLElementTagNameMap[K]
createElementNS<K>("http://www.w3.org/2000/svg", K)
function createElementNS<K>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]
Parametry
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
K
Zwraca
SVGElementTagNameMap[K]
createEvent("AnimationEvent")
Tworzy zdarzenie określonego typu.
function createEvent(eventInterface: "AnimationEvent"): AnimationEvent
Parametry
- eventInterface
-
"AnimationEvent"
Zwraca
AnimationEvent
createEvent("AnimationPlaybackEvent")
function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent
Parametry
- eventInterface
-
"AnimationPlaybackEvent"
Zwraca
AnimationPlaybackEvent
createEvent("AudioProcessingEvent")
function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent
Parametry
- eventInterface
-
"AudioProcessingEvent"
Zwraca
AudioProcessingEvent
createEvent("BeforeUnloadEvent")
function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent
Parametry
- eventInterface
-
"BeforeUnloadEvent"
Zwraca
BeforeUnloadEvent
createEvent("BlobEvent")
function createEvent(eventInterface: "BlobEvent"): BlobEvent
Parametry
- eventInterface
-
"BlobEvent"
Zwraca
BlobEvent
createEvent("ClipboardEvent")
function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent
Parametry
- eventInterface
-
"ClipboardEvent"
Zwraca
ClipboardEvent
createEvent("CloseEvent")
function createEvent(eventInterface: "CloseEvent"): CloseEvent
Parametry
- eventInterface
-
"CloseEvent"
Zwraca
CloseEvent
createEvent("CompositionEvent")
function createEvent(eventInterface: "CompositionEvent"): CompositionEvent
Parametry
- eventInterface
-
"CompositionEvent"
Zwraca
CompositionEvent
createEvent("ContentVisibilityAutoStateChangeEvent")
function createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent
Parametry
- eventInterface
-
"ContentVisibilityAutoStateChangeEvent"
Zwraca
ContentVisibilityAutoStateChangeEvent
createEvent("CookieChangeEvent")
function createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent
Parametry
- eventInterface
-
"CookieChangeEvent"
Zwraca
CookieChangeEvent
createEvent("CustomEvent")
function createEvent(eventInterface: "CustomEvent"): CustomEvent
Parametry
- eventInterface
-
"CustomEvent"
Zwraca
CustomEvent
createEvent("DeviceMotionEvent")
function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent
Parametry
- eventInterface
-
"DeviceMotionEvent"
Zwraca
DeviceMotionEvent
createEvent("DeviceOrientationEvent")
function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent
Parametry
- eventInterface
-
"DeviceOrientationEvent"
Zwraca
DeviceOrientationEvent
createEvent("DragEvent")
function createEvent(eventInterface: "DragEvent"): DragEvent
Parametry
- eventInterface
-
"DragEvent"
Zwraca
DragEvent
createEvent("ErrorEvent")
function createEvent(eventInterface: "ErrorEvent"): ErrorEvent
Parametry
- eventInterface
-
"ErrorEvent"
Zwraca
ErrorEvent
createEvent("Event")
function createEvent(eventInterface: "Event"): Event
Parametry
- eventInterface
-
"Event"
Zwraca
Event
createEvent("Events")
function createEvent(eventInterface: "Events"): Event
Parametry
- eventInterface
-
"Events"
Zwraca
Event
createEvent("FocusEvent")
function createEvent(eventInterface: "FocusEvent"): FocusEvent
Parametry
- eventInterface
-
"FocusEvent"
Zwraca
FocusEvent
createEvent("FontFaceSetLoadEvent")
function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent
Parametry
- eventInterface
-
"FontFaceSetLoadEvent"
Zwraca
FontFaceSetLoadEvent
createEvent("FormDataEvent")
function createEvent(eventInterface: "FormDataEvent"): FormDataEvent
Parametry
- eventInterface
-
"FormDataEvent"
Zwraca
FormDataEvent
createEvent("GamepadEvent")
function createEvent(eventInterface: "GamepadEvent"): GamepadEvent
Parametry
- eventInterface
-
"GamepadEvent"
Zwraca
GamepadEvent
createEvent("HashChangeEvent")
function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent
Parametry
- eventInterface
-
"HashChangeEvent"
Zwraca
HashChangeEvent
createEvent("IDBVersionChangeEvent")
function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent
Parametry
- eventInterface
-
"IDBVersionChangeEvent"
Zwraca
IDBVersionChangeEvent
createEvent("InputEvent")
function createEvent(eventInterface: "InputEvent"): InputEvent
Parametry
- eventInterface
-
"InputEvent"
Zwraca
InputEvent
createEvent("KeyboardEvent")
function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent
Parametry
- eventInterface
-
"KeyboardEvent"
Zwraca
KeyboardEvent
createEvent("MediaEncryptedEvent")
function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent
Parametry
- eventInterface
-
"MediaEncryptedEvent"
Zwraca
MediaEncryptedEvent
createEvent("MediaKeyMessageEvent")
function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent
Parametry
- eventInterface
-
"MediaKeyMessageEvent"
Zwraca
MediaKeyMessageEvent
createEvent("MediaQueryListEvent")
function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent
Parametry
- eventInterface
-
"MediaQueryListEvent"
Zwraca
MediaQueryListEvent
createEvent("MediaStreamTrackEvent")
function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent
Parametry
- eventInterface
-
"MediaStreamTrackEvent"
Zwraca
MediaStreamTrackEvent
createEvent("MessageEvent")
function createEvent(eventInterface: "MessageEvent"): MessageEvent
Parametry
- eventInterface
-
"MessageEvent"
Zwraca
MessageEvent
createEvent("MIDIConnectionEvent")
function createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent
Parametry
- eventInterface
-
"MIDIConnectionEvent"
Zwraca
MIDIConnectionEvent
createEvent("MIDIMessageEvent")
function createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent
Parametry
- eventInterface
-
"MIDIMessageEvent"
Zwraca
MIDIMessageEvent
createEvent("MouseEvent")
function createEvent(eventInterface: "MouseEvent"): MouseEvent
Parametry
- eventInterface
-
"MouseEvent"
Zwraca
MouseEvent
createEvent("MouseEvents")
function createEvent(eventInterface: "MouseEvents"): MouseEvent
Parametry
- eventInterface
-
"MouseEvents"
Zwraca
MouseEvent
createEvent("OfflineAudioCompletionEvent")
function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent
Parametry
- eventInterface
-
"OfflineAudioCompletionEvent"
Zwraca
OfflineAudioCompletionEvent
createEvent("PageRevealEvent")
function createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent
Parametry
- eventInterface
-
"PageRevealEvent"
Zwraca
PageRevealEvent
createEvent("PageSwapEvent")
function createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent
Parametry
- eventInterface
-
"PageSwapEvent"
Zwraca
PageSwapEvent
createEvent("PageTransitionEvent")
function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent
Parametry
- eventInterface
-
"PageTransitionEvent"
Zwraca
PageTransitionEvent
createEvent("PaymentMethodChangeEvent")
function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent
Parametry
- eventInterface
-
"PaymentMethodChangeEvent"
Zwraca
PaymentMethodChangeEvent
createEvent("PaymentRequestUpdateEvent")
function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent
Parametry
- eventInterface
-
"PaymentRequestUpdateEvent"
Zwraca
PaymentRequestUpdateEvent
createEvent("PictureInPictureEvent")
function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent
Parametry
- eventInterface
-
"PictureInPictureEvent"
Zwraca
PictureInPictureEvent
createEvent("PointerEvent")
function createEvent(eventInterface: "PointerEvent"): PointerEvent
Parametry
- eventInterface
-
"PointerEvent"
Zwraca
PointerEvent
createEvent("PopStateEvent")
function createEvent(eventInterface: "PopStateEvent"): PopStateEvent
Parametry
- eventInterface
-
"PopStateEvent"
Zwraca
PopStateEvent
createEvent("ProgressEvent")
function createEvent(eventInterface: "ProgressEvent"): ProgressEvent
Parametry
- eventInterface
-
"ProgressEvent"
Zwraca
ProgressEvent
createEvent("PromiseRejectionEvent")
function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent
Parametry
- eventInterface
-
"PromiseRejectionEvent"
Zwraca
PromiseRejectionEvent
createEvent("RTCDataChannelEvent")
function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent
Parametry
- eventInterface
-
"RTCDataChannelEvent"
Zwraca
RTCDataChannelEvent
createEvent("RTCDTMFToneChangeEvent")
function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent
Parametry
- eventInterface
-
"RTCDTMFToneChangeEvent"
Zwraca
RTCDTMFToneChangeEvent
createEvent("RTCErrorEvent")
function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent
Parametry
- eventInterface
-
"RTCErrorEvent"
Zwraca
RTCErrorEvent
createEvent("RTCPeerConnectionIceErrorEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent
Parametry
- eventInterface
-
"RTCPeerConnectionIceErrorEvent"
Zwraca
RTCPeerConnectionIceErrorEvent
createEvent("RTCPeerConnectionIceEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent
Parametry
- eventInterface
-
"RTCPeerConnectionIceEvent"
Zwraca
RTCPeerConnectionIceEvent
createEvent("RTCTrackEvent")
function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent
Parametry
- eventInterface
-
"RTCTrackEvent"
Zwraca
RTCTrackEvent
createEvent("SecurityPolicyViolationEvent")
function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent
Parametry
- eventInterface
-
"SecurityPolicyViolationEvent"
Zwraca
SecurityPolicyViolationEvent
createEvent("SpeechSynthesisErrorEvent")
function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent
Parametry
- eventInterface
-
"SpeechSynthesisErrorEvent"
Zwraca
SpeechSynthesisErrorEvent
createEvent("SpeechSynthesisEvent")
function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent
Parametry
- eventInterface
-
"SpeechSynthesisEvent"
Zwraca
SpeechSynthesisEvent
createEvent("StorageEvent")
function createEvent(eventInterface: "StorageEvent"): StorageEvent
Parametry
- eventInterface
-
"StorageEvent"
Zwraca
StorageEvent
createEvent("SubmitEvent")
function createEvent(eventInterface: "SubmitEvent"): SubmitEvent
Parametry
- eventInterface
-
"SubmitEvent"
Zwraca
SubmitEvent
createEvent("TextEvent")
function createEvent(eventInterface: "TextEvent"): TextEvent
Parametry
- eventInterface
-
"TextEvent"
Zwraca
TextEvent
createEvent("ToggleEvent")
function createEvent(eventInterface: "ToggleEvent"): ToggleEvent
Parametry
- eventInterface
-
"ToggleEvent"
Zwraca
ToggleEvent
createEvent("TouchEvent")
function createEvent(eventInterface: "TouchEvent"): TouchEvent
Parametry
- eventInterface
-
"TouchEvent"
Zwraca
TouchEvent
createEvent("TrackEvent")
function createEvent(eventInterface: "TrackEvent"): TrackEvent
Parametry
- eventInterface
-
"TrackEvent"
Zwraca
TrackEvent
createEvent("TransitionEvent")
function createEvent(eventInterface: "TransitionEvent"): TransitionEvent
Parametry
- eventInterface
-
"TransitionEvent"
Zwraca
TransitionEvent
createEvent("UIEvent")
function createEvent(eventInterface: "UIEvent"): UIEvent
Parametry
- eventInterface
-
"UIEvent"
Zwraca
UIEvent
createEvent("UIEvents")
function createEvent(eventInterface: "UIEvents"): UIEvent
Parametry
- eventInterface
-
"UIEvents"
Zwraca
UIEvent
createEvent("WebGLContextEvent")
function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent
Parametry
- eventInterface
-
"WebGLContextEvent"
Zwraca
WebGLContextEvent
createEvent("WheelEvent")
function createEvent(eventInterface: "WheelEvent"): WheelEvent
Parametry
- eventInterface
-
"WheelEvent"
Zwraca
WheelEvent
createEvent(string)
function createEvent(eventInterface: string): Event
Parametry
- eventInterface
-
string
Zwraca
Event
createNodeIterator(Node, number, NodeFilter | null)
Metoda Document.createNodeIterator() zwraca nowy NodeIterator obiekt.
function createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator
Parametry
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Zwraca
NodeIterator
createProcessingInstruction(string, string)
createProcessingInstruction() generuje nowy węzeł instrukcji przetwarzania i zwraca go.
function createProcessingInstruction(target: string, data: string): ProcessingInstruction
Parametry
- target
-
string
- data
-
string
Zwraca
ProcessingInstruction
createRange()
Metoda Document.createRange() zwraca nową js-nolint createRange() wartość None.
function createRange(): Range
Zwraca
Range
createTextNode(string)
Tworzy nowy węzeł Tekst.
function createTextNode(data: string): Text
Parametry
- data
-
string
Zwraca
Text
createTreeWalker(Node, number, NodeFilter | null)
Metoda Document.createTreeWalker() creator zwraca nowo utworzony obiekt TreeWalker.
function createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker
Parametry
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Zwraca
TreeWalker
execCommand(string, boolean, string)
Metoda execCommand implementuje wiele różnych poleceń.
function execCommand(commandId: string, showUI?: boolean, value?: string): boolean
Parametry
- commandId
-
string
- showUI
-
boolean
- value
-
string
Zwraca
boolean
exitFullscreen()
Metoda exitFullscreen() Document żąda, aby element w tym dokumencie, który jest obecnie prezentowany w trybie pełnoekranowym, został wyjęty z trybu pełnoekranowego, przywracając poprzedni stan ekranu.
function exitFullscreen(): Promise<void>
Zwraca
Promise<void>
exitPictureInPicture()
exitPictureInPicture() Metoda interfejsu Document żąda, aby wideo zawarte w tym dokumencie, które jest obecnie przestawne, zostało wyjęte z trybu obrazu w obrazie, przywracając poprzedni stan ekranu.
function exitPictureInPicture(): Promise<void>
Zwraca
Promise<void>
exitPointerLock()
exitPointerLock() Metoda interfejsu Document asynchronicznie zwalnia wcześniej żądaną blokadę wskaźnika za pośrednictwem elementu.requestPointerLock.
function exitPointerLock()
getElementById(string)
Zwraca pierwszy element w elementach potomnych węzła, którego identyfikator jest elementem elementId.
function getElementById(elementId: string): HTMLElement | null
Parametry
- elementId
-
string
Zwraca
HTMLElement | null
getElementsByClassName(string)
getElementsByClassName Metoda wszystkich elementów podrzędnych, które mają wszystkie podane nazwy klas.
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
Parametry
- classNames
-
string
Zwraca
HTMLCollectionOf<Element>
getElementsByName(string)
Metoda getElementsByName() obiektu Document zwraca kolekcję NodeList elementów z danym name atrybutem w dokumencie.
function getElementsByName(elementName: string): NodeListOf<HTMLElement>
Parametry
- elementName
-
string
Zwraca
NodeListOf<HTMLElement>
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
Parametry
- qualifiedName
-
string
Zwraca
HTMLCollectionOf<Element>
getElementsByTagName<K>(K)
Metoda getElementsByTagName kompletnego dokumentu jest przeszukiwana, w tym węzeł główny.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Parametry
- qualifiedName
-
K
Zwraca
HTMLCollectionOf<HTMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
Parametry
- qualifiedName
-
K
Zwraca
HTMLCollectionOf<SVGElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
Parametry
- qualifiedName
-
K
Zwraca
HTMLCollectionOf<MathMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Parametry
- qualifiedName
-
K
Zwraca
HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>
Parametry
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- localName
-
string
Zwraca
HTMLCollectionOf<MathMLElement>
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
Zwraca listę elementów o podanej nazwie tagu należącej do danej przestrzeni nazw.
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
Parametry
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
Zwraca
HTMLCollectionOf<HTMLElement>
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
Parametry
- namespaceURI
-
"http://www.w3.org/2000/svg"
- localName
-
string
Zwraca
HTMLCollectionOf<SVGElement>
getElementsByTagNameNS(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
Parametry
- namespace
-
string | null
- localName
-
string
Zwraca
HTMLCollectionOf<Element>
getSelection()
Metoda getSelection() interfejsu Document zwraca obiekt Selection skojarzony z tym dokumentem, reprezentujący zakres tekstu wybranego przez użytkownika lub bieżące położenie karetki.
function getSelection(): Selection | null
Zwraca
Selection | null
hasFocus()
Metoda hasFocus() interfejsu Document zwraca wartość logiczną wskazującą, czy dokument lub dowolny element wewnątrz dokumentu ma fokus.
function hasFocus(): boolean
Zwraca
boolean
hasStorageAccess()
hasStorageAccess() Metoda interfejsu Document zwraca obietnicę, która rozpoznaje wartość logiczną wskazującą, czy dokument ma dostęp do plików cookie innych firm, które nie są partycjonowane.
function hasStorageAccess(): Promise<boolean>
Zwraca
Promise<boolean>
importNode<T>(T, boolean | ImportNodeOptions)
Metoda obiektu importNode() Document tworzy kopię wstawioną do bieżącego dokumentu później.
function importNode<T>(node: T, options?: boolean | ImportNodeOptions): T
Parametry
- node
-
T
- options
-
boolean | ImportNodeOptions
Zwraca
T
open(string | URL, string, string)
function open(url: string | URL, name: string, features: string): Window | null
Parametry
- url
-
string | URL
- name
-
string
- features
-
string
Zwraca
Window | null
open(string, string)
Metoda Document.open() otwiera dokument dla tego, który pochodzi z niektórych skutków ubocznych.
function open(unused1?: string, unused2?: string): Document
Parametry
- unused1
-
string
- unused2
-
string
Zwraca
queryCommandEnabled(string)
Metoda Document.queryCommandEnabled() zgłasza, czy określone polecenie edytora jest włączone przez przeglądarkę.
function queryCommandEnabled(commandId: string): boolean
Parametry
- commandId
-
string
Zwraca
boolean
queryCommandIndeterm(string)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function queryCommandIndeterm(commandId: string): boolean
Parametry
- commandId
-
string
Zwraca
boolean
queryCommandState(string)
Metoda queryCommandState() poinformuje Cię, czy bieżące zaznaczenie ma zastosowane polecenie Document.execCommand().
function queryCommandState(commandId: string): boolean
Parametry
- commandId
-
string
Zwraca
boolean
queryCommandSupported(string)
Metoda Document.queryCommandSupported() zgłasza, czy określone polecenie edytora jest obsługiwane przez przeglądarkę.
function queryCommandSupported(commandId: string): boolean
Parametry
- commandId
-
string
Zwraca
boolean
queryCommandValue(string)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function queryCommandValue(commandId: string): string
Parametry
- commandId
-
string
Zwraca
string
releaseEvents()
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parametry
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)
Metoda removeEventListener() interfejsu EventTarget usuwa odbiornik zdarzeń wcześniej zarejestrowany w usłudze EventTarget.addEventListener() z obiektu docelowego.
function removeEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parametry
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | EventListenerOptions
requestStorageAccess()
requestStorageAccess() Metoda interfejsu document umożliwia ładowanie zawartości w kontekście innej firmy (tj. osadzonej w ramce iframe) w celu żądania dostępu do plików cookie innych firm i stanu niepartycyjnego.
function requestStorageAccess(): Promise<void>
Zwraca
Promise<void>
startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)
Metoda startViewTransition() interfejsu Document rozpoczyna przejście widoku tego samego dokumentu (SPA) i zwraca obiekt ViewTransition, aby go reprezentować.
function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition
Parametry
- callbackOptions
-
ViewTransitionUpdateCallback | StartViewTransitionOptions
Zwraca
ViewTransition
write(string[])
Metoda write() interfejsu document zapisuje tekst w co najmniej jednym elemedycie TrustedHTML lub parametrach ciągu do strumienia dokumentu otwartego przez plik document.open().
function write(text: string[])
Parametry
- text
-
string[]
writeln(string[])
Metoda writeln() interfejsu Document zapisuje tekst w co najmniej jednym parametrze TrustedHTML lub ciągu do strumienia dokumentu otwartego przez plik document.open(), po którym następuje znak nowego wiersza.
function writeln(text: string[])
Parametry
- text
-
string[]
Szczegóły metody dziedziczonej
append((string | Node)[])
Wstawia węzły po ostatnim elemencie podrzędnym węzła, zastępując ciągi w węzłach równoważnymi węzłami tekstowymi.
Zgłasza wyjątek DOMException "HierarchyRequestError", jeśli zostaną naruszone ograniczenia drzewa węzłów.
function append(nodes: (string | Node)[])
Parametry
- nodes
-
(string | Node)[]
dziedziczone z ParentNode.append
appendChild<T>(T)
Metoda appendChild() interfejsu Node dodaje węzeł na końcu listy elementów podrzędnych określonego węzła nadrzędnego.
function appendChild<T>(node: T): T
Parametry
- node
-
T
Zwraca
T
dziedziczone z Node.appendChild
cloneNode(boolean)
Metoda cloneNode() interfejsu Node zwraca duplikat węzła, na którym wywołano tę metodę.
function cloneNode(subtree?: boolean): Node
Parametry
- subtree
-
boolean
Zwraca
Node
dziedziczone z węzła.cloneNode
compareDocumentPosition(Node)
compareDocumentPosition() Metoda interfejsu Node zgłasza położenie węzła argumentu względem węzła, na którym jest wywoływany.
function compareDocumentPosition(other: Node): number
Parametry
- other
-
Node
Zwraca
number
dziedziczone z węzła.compareDocumentPosition
contains(Node | null)
contains() Metoda interfejsu Node zwraca wartość logiczną wskazującą, czy węzeł jest elementem podrzędnym danego węzła, który jest samym węzłem, jednym z jego bezpośrednich elementów podrzędnych (Node.childNodes), jednym z bezpośrednich elementów podrzędnych itd.
function contains(other: Node | null): boolean
Parametry
- other
-
Node | null
Zwraca
boolean
dziedziczone z węzła.contains
createExpression(string, XPathNSResolver | null)
function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression
Parametry
- expression
-
string
- resolver
-
XPathNSResolver | null
Zwraca
XPathExpression
dziedziczone z XPathEvaluatorBase.createExpression
createNSResolver(Node)
function createNSResolver(nodeResolver: Node): Node
Parametry
- nodeResolver
-
Node
Zwraca
Node
dziedziczone z XPathEvaluatorBase.createNSResolver
dispatchEvent(Event)
dispatchEvent() Metoda eventTarget wysyła zdarzenie do obiektu (synchronicznie) wywołując odbiorniki zdarzeń, których dotyczy problem, w odpowiedniej kolejności.
function dispatchEvent(event: Event): boolean
Parametry
- event
-
Event
Zwraca
boolean
dziedziczone z Node.dispatchEvent
elementFromPoint(number, number)
function elementFromPoint(x: number, y: number): Element | null
Parametry
- x
-
number
- y
-
number
Zwraca
Element | null
dziedziczone z DocumentOrShadowRoot.elementFromPoint
elementsFromPoint(number, number)
function elementsFromPoint(x: number, y: number): Element[]
Parametry
- x
-
number
- y
-
number
Zwraca
Element[]
dziedziczone z DocumentOrShadowRoot.elementsFromPoint
evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)
function evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult
Parametry
- expression
-
string
- contextNode
-
Node
- resolver
-
XPathNSResolver | null
- type
-
number
- result
-
XPathResult | null
Zwraca
XPathResult
dziedziczone z XPathEvaluatorBase.evaluate
getAnimations()
function getAnimations(): Animation[]
Zwraca
Animation[]
dziedziczone z DocumentOrShadowRoot.getAnimations
getRootNode(GetRootNodeOptions)
Metoda getRootNode() interfejsu Node zwraca katalog główny obiektu kontekstu, który opcjonalnie zawiera katalog główny w tle, jeśli jest dostępny.
function getRootNode(options?: GetRootNodeOptions): Node
Parametry
- options
-
GetRootNodeOptions
Zwraca
Node
dziedziczone z węzła.getRootNode
hasChildNodes()
hasChildNodes() Metoda interfejsu Node zwraca wartość logiczną wskazującą, czy dany węzeł ma węzły podrzędne, czy nie.
function hasChildNodes(): boolean
Zwraca
boolean
dziedziczone z węzła.hasChildNodes
insertBefore<T>(T, Node | null)
Metoda insertBefore() interfejsu Node wstawia węzeł przed węzłem odniesienia jako element podrzędny określonego węzła nadrzędnego.
function insertBefore<T>(node: T, child: Node | null): T
Parametry
- node
-
T
- child
-
Node | null
Zwraca
T
dziedziczone z węzła.insertBefore
isDefaultNamespace(string | null)
isDefaultNamespace() Metoda interfejsu Node akceptuje identyfikator URI przestrzeni nazw jako argument.
function isDefaultNamespace(namespace: string | null): boolean
Parametry
- namespace
-
string | null
Zwraca
boolean
dziedziczone z Node.isDefaultNamespace
isEqualNode(Node | null)
isEqualNode() Metoda interfejsu Node sprawdza, czy dwa węzły są równe.
function isEqualNode(otherNode: Node | null): boolean
Parametry
- otherNode
-
Node | null
Zwraca
boolean
dziedziczone z węzła.isEqualNode
isSameNode(Node | null)
isSameNode() Metoda interfejsu Node jest starszym aliasem operatora ścisłej === równości.
function isSameNode(otherNode: Node | null): boolean
Parametry
- otherNode
-
Node | null
Zwraca
boolean
dziedziczone z węzła.isSameNode
lookupNamespaceURI(string | null)
Metoda lookupNamespaceURI() interfejsu Node przyjmuje prefiks jako parametr i zwraca identyfikator URI przestrzeni nazw skojarzony z nim w danym węźle, jeśli zostanie znaleziony (i null jeśli nie).
function lookupNamespaceURI(prefix: string | null): string | null
Parametry
- prefix
-
string | null
Zwraca
string | null
dziedziczone z identyfikatora Node.lookupNamespaceURI
lookupPrefix(string | null)
Metoda lookupPrefix() interfejsu Node zwraca ciąg zawierający prefiks dla danego identyfikatora URI przestrzeni nazw, jeśli istnieje, a null jeśli nie.
function lookupPrefix(namespace: string | null): string | null
Parametry
- namespace
-
string | null
Zwraca
string | null
dziedziczone z Node.lookupPrefix
normalize()
Metoda normalize() interfejsu Node umieszcza określony węzeł i wszystkie jego podzadrzewo do znormalizowanego formularza.
function normalize()
dziedziczone z węzła.normalize
prepend((string | Node)[])
Wstawia węzły przed pierwszym elementem podrzędnym węzła, zastępując ciągi w węzłach równoważnymi węzłami tekstowymi.
Zgłasza wyjątek DOMException "HierarchyRequestError", jeśli zostaną naruszone ograniczenia drzewa węzłów.
function prepend(nodes: (string | Node)[])
Parametry
- nodes
-
(string | Node)[]
dziedziczone z ParentNode.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): E | null
Parametry
- selectors
-
string
Zwraca
E | null
dziedziczone z ParentNode.querySelector
querySelector<K>(K)
Zwraca pierwszy element, który jest elementem potomnym węzła, który pasuje do selektorów.
function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null
Parametry
- selectors
-
K
Zwraca
HTMLElementTagNameMap[K] | null
dziedziczone z ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
Parametry
- selectors
-
K
Zwraca
SVGElementTagNameMap[K] | null
dziedziczone z ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
Parametry
- selectors
-
K
Zwraca
MathMLElementTagNameMap[K] | null
dziedziczone z ParentNode.querySelector
querySelector<K>(K)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
Parametry
- selectors
-
K
Zwraca
HTMLElementDeprecatedTagNameMap[K] | null
dziedziczone z ParentNode.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
Parametry
- selectors
-
string
Zwraca
NodeListOf<E>
dziedziczone z ParentNode.querySelectorAll
querySelectorAll<K>(K)
Zwraca wszystkie elementy potomne węzła, które pasują do selektorów.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
Parametry
- selectors
-
K
Zwraca
NodeListOf<HTMLElementTagNameMap[K]>
dziedziczone z ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
Parametry
- selectors
-
K
Zwraca
NodeListOf<SVGElementTagNameMap[K]>
dziedziczone z ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
Parametry
- selectors
-
K
Zwraca
NodeListOf<MathMLElementTagNameMap[K]>
dziedziczone z ParentNode.querySelectorAll
querySelectorAll<K>(K)
Ostrzeżenie
Ten interfejs API jest już przestarzały.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Parametry
- selectors
-
K
Zwraca
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
dziedziczone z ParentNode.querySelectorAll
removeChild<T>(T)
Metoda removeChild() interfejsu Node usuwa węzeł podrzędny z modelu DOM i zwraca usunięty węzeł.
function removeChild<T>(child: T): T
Parametry
- child
-
T
Zwraca
T
dziedziczone z węzła.removeChild
replaceChild<T>(Node, T)
Metoda replaceChild() interfejsu Node zastępuje węzeł podrzędny w danym węźle (nadrzędnym).
function replaceChild<T>(node: Node, child: T): T
Parametry
- node
-
Node
- child
-
T
Zwraca
T
dziedziczone z węzła.replaceChild
replaceChildren((string | Node)[])
Zastąp wszystkie elementy podrzędne węzłów węzłami węzłami, zastępując ciągi w węzłach równoważnymi węzłami tekstowymi.
Zgłasza wyjątek DOMException "HierarchyRequestError", jeśli zostaną naruszone ograniczenia drzewa węzłów.
function replaceChildren(nodes: (string | Node)[])
Parametry
- nodes
-
(string | Node)[]
dziedziczone z ParentNode.replaceChildren