Document interface
L'interfaccia Document rappresenta qualsiasi pagina Web caricata nel browser e funge da punto di ingresso nel contenuto della pagina Web, ovvero l'albero DOM.
- Extends
-
Node,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase
Proprietà
| alink |
Restituisce o imposta il colore di un collegamento attivo nel corpo del documento. |
| all | La proprietà di sola |
| anchors | Proprietà |
| applets | La |
| bg |
La proprietà deprecata |
| body | La |
| character |
La |
| charset | |
| compat |
La |
| content |
La |
| cookie | La proprietà |
| current |
La |
| default |
Nei browser restituisce |
| design |
|
| dir | La |
| doctype | La |
| document |
La |
| documentURI | Proprietà |
| domain | La |
| embeds | Proprietà |
| fg |
|
| forms | La |
| fragment |
La |
| fullscreen | La proprietà di sola lettura dell'interfaccia |
| fullscreen |
La proprietà di sola lettura |
| head | La |
| hidden | La |
| images | La |
| implementation | La |
| input |
|
| last |
La |
| link |
La |
| links | La |
| location | La |
| moz |
|
| ms |
|
| onfullscreenchange | |
| onfullscreenerror | |
| onpointerlockchange | |
| onpointerlockerror | |
| onreadystatechange | |
| onvisibilitychange | |
| owner |
La proprietà di sola lettura |
| picture |
Proprietà di sola lettura |
| plugins | Proprietà |
| ready |
La |
| referrer | La |
| root |
|
| scripts | La |
| scrolling |
La |
| text |
|
| timeline | La |
| title | La |
| URL | La |
| visibility |
La |
| vlink |
La |
| webkit |
Proprietà ereditate
| active |
Restituisce l'elemento più profondo del documento tramite il quale o a cui vengono instradati gli eventi chiave. Si tratta, approssimativamente, dell'elemento con stato attivo nel documento. Ai fini di questa API, quando si concentra un contesto di esplorazione figlio, il relativo contenitore viene concentrato nel contesto di esplorazione padre. Ad esempio, se l'utente sposta lo stato attivo su un controllo di testo in un iframe, l'iframe è l'elemento restituito dall'API activeElement nel documento del nodo dell'iframe. Analogamente, quando l'elemento con stato attivo si trova in un albero dei nodi diverso da documentOrShadowRoot, l'elemento restituito sarà l'host che si trova nello stesso albero dei nodi di documentOrShadowRoot se documentOrShadowRoot è un predecessore inclusivo incluso nell'ombreggiatura dell'elemento attivo e null in caso contrario. |
| adopted |
|
| ATTRIBUTE_NODE | |
| baseURI | La proprietà di sola |
| CDATA_SECTION_NODE | node è un nodo CDATASection. |
| child |
|
| child |
La proprietà di sola |
| children | Restituisce gli elementi figlio. |
| COMMENT_NODE | node è un nodo commento. |
| DOCUMENT_FRAGMENT_NODE | node è un nodo DocumentFragment. |
| DOCUMENT_NODE | node è un documento. |
| DOCUMENT_POSITION_CONTAINED_BY | Impostare quando un altro è un discendente del nodo. |
| DOCUMENT_POSITION_CONTAINS | Impostare quando un altro è un predecessore del nodo. |
| DOCUMENT_POSITION_DISCONNECTED | Impostare quando nodo e altro non si trovano nello stesso albero. |
| DOCUMENT_POSITION_FOLLOWING | Impostare quando l'altro è il nodo seguente. |
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | |
| DOCUMENT_POSITION_PRECEDING | Impostare quando un altro nodo è precedente. |
| DOCUMENT_TYPE_NODE | node è un doctype. |
| ELEMENT_NODE | node è un elemento. |
| ENTITY_NODE | |
| ENTITY_REFERENCE_NODE | |
| first |
La proprietà di sola |
| first |
Restituisce il primo elemento figlio che è un elemento e null in caso contrario. |
| fonts | |
| fullscreen |
Restituisce l'elemento a schermo intero del documento. |
| is |
La proprietà di sola |
| last |
La proprietà di sola |
| last |
Restituisce l'ultimo elemento figlio che è un elemento e null in caso contrario. |
| next |
La proprietà di sola lettura |
| node |
La proprietà di sola lettura |
| node |
La proprietà di sola |
| node |
La |
| 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 | Disponibile solo in contesti sicuri. |
| 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 |
La proprietà di sola lettura |
| parent |
La proprietà di sola lettura |
| picture |
|
| pointer |
|
| previous |
La proprietà di sola lettura |
| PROCESSING_INSTRUCTION_NODE | node è un nodo ProcessingInstruction. |
| style |
|
| TEXT_NODE | node è un nodo Di testo. |
Metodi
| add |
|
| add |
Il |
| adopt |
|
| capture |
|
| caret |
Il |
| caret |
|
| clear() | Il |
| close() | Il |
| create |
Il |
| create |
Il |
| create |
|
| create |
|
| create |
Crea un nuovo DocumentFragment vuoto in cui è possibile aggiungere nodi DOM per compilare un albero DOM fuori schermo. |
| create |
|
| create |
In un documento HTML il |
| create |
|
| create |
|
| create |
Crea un elemento con l'URI dello spazio dei nomi e il nome completo specificati. |
| create |
|
| create |
|
| create |
|
| create |
|
| create |
|
| create |
Crea un evento del tipo specificato. |
| 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 |
Il |
| create |
|
| create |
Il |
| create |
Crea un nuovo nodo Text. |
| create |
Il |
| exec |
Il |
| exit |
Il metodo |
| exit |
Il |
| exit |
Il |
| get |
Restituisce il primo elemento all'interno dei discendenti del nodo il cui ID è elementId. |
| get |
Metodo |
| get |
Il |
| get |
|
| get |
Viene |
| get |
|
| get |
|
| get |
|
| get |
|
| get |
Restituisce un elenco di elementi con il nome di tag specificato appartenente allo spazio dei nomi specificato. |
| get |
|
| get |
|
| get |
Il |
| has |
Il |
| has |
Il |
| import |
Il metodo dell'oggetto |
| open(string | URL, string, string) | |
| open(string, string) | Il |
| query |
Il |
| query |
|
| query |
Il |
| query |
Il |
| query |
|
| release |
|
| remove |
|
| remove |
Il |
| request |
Il |
| start |
Il |
| write(string[]) | Il |
| writeln(string[]) | Il |
Metodi ereditati
| append((string | Node)[]) | Inserisce nodi dopo l'ultimo elemento figlio del nodo, sostituendo le stringhe nei nodi con nodi di testo equivalenti. Genera un'eccezione DOMException "HierarchyRequestError" se i vincoli dell'albero dei nodi vengono violati. |
| append |
Il |
| clone |
Il |
| compare |
Il |
| contains(Node | null) | Il |
| create |
|
| create |
|
| dispatch |
Il |
| element |
|
| elements |
|
| evaluate(string, Node, XPath |
|
| get |
|
| get |
Il |
| has |
Il |
| insert |
Il |
| is |
Il |
| is |
Il |
| is |
Il |
| lookup |
Il |
| lookup |
Il |
| normalize() | Il |
| prepend((string | Node)[]) | Inserisce i nodi prima del primo elemento figlio del nodo, sostituendo le stringhe nei nodi con nodi text equivalenti. Genera un'eccezione DOMException "HierarchyRequestError" se i vincoli dell'albero dei nodi vengono violati. |
| query |
|
| query |
Restituisce il primo elemento discendente del nodo che corrisponde ai selettori. |
| query |
|
| query |
|
| query |
|
| query |
|
| query |
Restituisce tutti i discendenti di elemento del nodo che corrispondono ai selettori. |
| query |
|
| query |
|
| query |
|
| remove |
Il |
| replace |
Il |
| replace |
Sostituire tutti gli elementi figlio del nodo con nodi, sostituendo le stringhe nei nodi con nodi di testo equivalenti. Genera un'eccezione DOMException "HierarchyRequestError" se i vincoli dell'albero dei nodi vengono violati. |
Dettagli proprietà
alinkColor
Restituisce o imposta il colore di un collegamento attivo nel corpo del documento.
alinkColor: string
Valore della proprietà
string
all
La proprietà di sola all lettura dell'interfaccia Document restituisce un htmlAllCollection rooted nel nodo del documento.
all: HTMLAllCollection
Valore della proprietà
HTMLAllCollection
anchors
Proprietà anchors di sola lettura di An HTMLCollection.
anchors: HTMLCollectionOf<HTMLAnchorElement>
Valore della proprietà
HTMLCollectionOf<HTMLAnchorElement>
applets
La applets proprietà del documento restituisce un htmlCollection vuoto.
applets: HTMLCollection
Valore della proprietà
HTMLCollection
bgColor
La proprietà deprecata bgColor ottiene o imposta il colore di sfondo del documento corrente.
bgColor: string
Valore della proprietà
string
body
La Document.body proprietà rappresenta l'oggetto null se non esiste alcun elemento di questo tipo.
Informazioni di riferimento su MDN
body: HTMLElement
Valore della proprietà
HTMLElement
characterSet
La Document.characterSet proprietà di sola lettura restituisce la codifica dei caratteri del documento con cui è attualmente sottoposto a rendering.
Informazioni di riferimento su MDN
characterSet: string
Valore della proprietà
string
charset
charset: string
Valore della proprietà
string
compatMode
La Document.compatMode proprietà di sola lettura indica se il rendering del documento viene eseguito in modalità Nonrks o Standard.
Informazioni di riferimento su MDN
compatMode: string
Valore della proprietà
string
contentType
La Document.contentType proprietà di sola lettura restituisce il tipo MIME di cui viene eseguito il rendering del documento.
Informazioni di riferimento su MDN
contentType: string
Valore della proprietà
string
cookie
La proprietà cookie Document consente di leggere e scrivere cookie associati al documento.
Informazioni di riferimento su MDN
cookie: string
Valore della proprietà
string
currentScript
La Document.currentScript proprietà restituisce l'elemento script il cui script è in fase di elaborazione e non è un modulo JavaScript.
Informazioni di riferimento su MDN
currentScript: HTMLOrSVGScriptElement | null
Valore della proprietà
HTMLOrSVGScriptElement | null
defaultView
Nei browser restituisce document.defaultView la proprietà This di sola lettura.
Informazioni di riferimento su MDN
defaultView: (Window & typeof globalThis) | null
Valore della proprietà
(Window & typeof globalThis) | null
designMode
document.designMode controlla se l'intero documento è modificabile.
Informazioni di riferimento su MDN
designMode: string
Valore della proprietà
string
dir
La Document.dir proprietà è una stringa che rappresenta la direzione del testo del documento, da sinistra a destra (impostazione predefinita) o da destra a sinistra.
Informazioni di riferimento su MDN
dir: string
Valore della proprietà
string
doctype
La doctype proprietà di sola lettura dell'interfaccia Document è un oggetto DocumentType che rappresenta il doctype associato al documento corrente.
Informazioni di riferimento su MDN
doctype: DocumentType | null
Valore della proprietà
DocumentType | null
documentElement
La documentElement proprietà di sola lettura dell'interfaccia Document restituisce l'esempio, l'elemento html per i documenti HTML.
Informazioni di riferimento su MDN
documentElement: HTMLElement
Valore della proprietà
HTMLElement
documentURI
Proprietà documentURI di sola lettura della stringa A.
Informazioni di riferimento su MDN
documentURI: string
Valore della proprietà
string
domain
La domain proprietà dell'interfaccia Document ottiene/imposta la parte di dominio dell'origine del documento corrente, utilizzata dai criteri di stessa origine.
domain: string
Valore della proprietà
string
embeds
Proprietà embeds di sola lettura di An HTMLCollection.
Informazioni di riferimento su MDN
embeds: HTMLCollectionOf<HTMLEmbedElement>
Valore della proprietà
HTMLCollectionOf<HTMLEmbedElement>
fgColor
fgColor ottiene/imposta il colore di primo piano, o il colore del testo, del documento corrente.
fgColor: string
Valore della proprietà
string
forms
La forms proprietà di sola lettura dell'interfaccia Document restituisce un oggetto HTMLCollection che elenca tutti gli elementi del modulo contenuti nel documento.
Informazioni di riferimento su MDN
forms: HTMLCollectionOf<HTMLFormElement>
Valore della proprietà
HTMLCollectionOf<HTMLFormElement>
fragmentDirective
La fragmentDirective proprietà di sola lettura dell'interfaccia Document restituisce FragmentDirective per il documento corrente.
Informazioni di riferimento su MDN
fragmentDirective: FragmentDirective
Valore della proprietà
FragmentDirective
fullscreen
La proprietà di sola lettura dell'interfaccia fullscreen documento obsoleta indica se il documento visualizza o meno il contenuto in modalità schermo intero.
fullscreen: boolean
Valore della proprietà
boolean
fullscreenEnabled
La proprietà di sola lettura fullscreenEnabled nell'interfaccia Documento indica se è disponibile o meno la modalità schermo intero.
Informazioni di riferimento su MDN
fullscreenEnabled: boolean
Valore della proprietà
boolean
head
La head proprietà di sola lettura dell'interfaccia Document restituisce l'elemento head del documento corrente.
Informazioni di riferimento su MDN
head: HTMLHeadElement
Valore della proprietà
HTMLHeadElement
hidden
La Document.hidden proprietà di sola lettura restituisce un valore booleano che indica se la pagina è considerata nascosta o meno.
Informazioni di riferimento su MDN
hidden: boolean
Valore della proprietà
boolean
images
La images proprietà di sola lettura dell'interfaccia Document restituisce un insieme di immagini nel documento HTML corrente.
Informazioni di riferimento su MDN
images: HTMLCollectionOf<HTMLImageElement>
Valore della proprietà
HTMLCollectionOf<HTMLImageElement>
implementation
La Document.implementation proprietà restituisce un oggetto DOMImplementation.
Informazioni di riferimento su MDN
implementation: DOMImplementation
Valore della proprietà
DOMImplementation
inputEncoding
inputEncoding: string
Valore della proprietà
string
lastModified
La lastModified proprietà dell'interfaccia Document restituisce una stringa contenente la data e l'ora locale in cui il documento corrente è stato modificato per l'ultima volta.
Informazioni di riferimento su MDN
lastModified: string
Valore della proprietà
string
linkColor
La Document.linkColor proprietà ottiene/imposta il colore dei collegamenti all'interno del documento.
linkColor: string
Valore della proprietà
string
links
La links proprietà di sola lettura dell'interfaccia Document restituisce un insieme di tutti gli elementi dell'area e un elemento di un documento con un valore per l'attributo href.
Informazioni di riferimento su MDN
links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
Valore della proprietà
HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>
location
La Document.location proprietà di sola lettura restituisce un oggetto e fornisce metodi per modificare tale URL e caricare un altro URL.
Informazioni di riferimento su MDN
Location location
Valore della proprietà
Location
mozCancelFullScreen
mozCancelFullScreen: any
Valore della proprietà
any
msExitFullscreen
msExitFullscreen: any
Valore della proprietà
any
onfullscreenchange
Informazioni di riferimento su MDN
onfullscreenchange: (this: Document, ev: Event) => any | null
Valore della proprietà
(this: Document, ev: Event) => any | null
onfullscreenerror
Informazioni di riferimento su MDN
onfullscreenerror: (this: Document, ev: Event) => any | null
Valore della proprietà
(this: Document, ev: Event) => any | null
onpointerlockchange
Informazioni di riferimento su MDN
onpointerlockchange: (this: Document, ev: Event) => any | null
Valore della proprietà
(this: Document, ev: Event) => any | null
onpointerlockerror
Informazioni di riferimento su MDN
onpointerlockerror: (this: Document, ev: Event) => any | null
Valore della proprietà
(this: Document, ev: Event) => any | null
onreadystatechange
Informazioni di riferimento su MDN
onreadystatechange: (this: Document, ev: Event) => any | null
Valore della proprietà
(this: Document, ev: Event) => any | null
onvisibilitychange
Informazioni di riferimento su MDN
onvisibilitychange: (this: Document, ev: Event) => any | null
Valore della proprietà
(this: Document, ev: Event) => any | null
ownerDocument
La proprietà di sola lettura ownerDocument dell'interfaccia Node restituisce l'oggetto documento di primo livello del nodo.
Informazioni di riferimento su MDN
ownerDocument: null
Valore della proprietà
null
pictureInPictureEnabled
Proprietà di sola lettura pictureInPictureEnabled dell'oggetto disponibile.
Informazioni di riferimento su MDN
pictureInPictureEnabled: boolean
Valore della proprietà
boolean
plugins
Proprietà plugins di sola lettura dell'oggetto contenente uno o più HTMLEmbedElement che rappresentano un oggetto HTMLCollection.
Informazioni di riferimento su MDN
plugins: HTMLCollectionOf<HTMLEmbedElement>
Valore della proprietà
HTMLCollectionOf<HTMLEmbedElement>
readyState
La Document.readyState proprietà descrive lo stato di caricamento del documento.
Informazioni di riferimento su MDN
readyState: DocumentReadyState
Valore della proprietà
DocumentReadyState
referrer
La Document.referrer proprietà restituisce l'URI della pagina collegata a questa pagina.
Informazioni di riferimento su MDN
referrer: string
Valore della proprietà
string
rootElement
Document.rootElement restituisce l'elemento Element che rappresenta l'elemento radice del documento se si tratta di un documento.
rootElement: SVGSVGElement | null
Valore della proprietà
SVGSVGElement | null
scripts
La scripts proprietà dell'interfaccia Document restituisce un elenco degli elementi dello script nel documento.
Informazioni di riferimento su MDN
scripts: HTMLCollectionOf<HTMLScriptElement>
Valore della proprietà
HTMLCollectionOf<HTMLScriptElement>
scrollingElement
La scrollingElement proprietà di sola lettura del documento scorre il documento.
Informazioni di riferimento su MDN
scrollingElement: Element | null
Valore della proprietà
Element | null
textContent
timeline
La timeline proprietà readonly dell'interfaccia Document rappresenta la sequenza temporale predefinita del documento corrente.
Informazioni di riferimento su MDN
timeline: DocumentTimeline
Valore della proprietà
DocumentTimeline
title
La document.title proprietà ottiene o imposta il titolo corrente del documento.
Informazioni di riferimento su MDN
title: string
Valore della proprietà
string
URL
La URL proprietà di sola lettura dell'interfaccia Document restituisce il percorso del documento come stringa.
Informazioni di riferimento su MDN
URL: string
Valore della proprietà
string
visibilityState
La Document.visibilityState proprietà di sola lettura restituisce la visibilità del documento.
Informazioni di riferimento su MDN
visibilityState: DocumentVisibilityState
Valore della proprietà
DocumentVisibilityState
vlinkColor
La Document.vlinkColor proprietà ottiene/imposta il colore dei collegamenti visitati dall'utente nel documento.
vlinkColor: string
Valore della proprietà
string
webkitExitFullscreen
webkitExitFullscreen: void
Valore della proprietà
void
Dettagli proprietà ereditate
activeElement
Restituisce l'elemento più profondo del documento tramite il quale o a cui vengono instradati gli eventi chiave. Si tratta, approssimativamente, dell'elemento con stato attivo nel documento.
Ai fini di questa API, quando si concentra un contesto di esplorazione figlio, il relativo contenitore viene concentrato nel contesto di esplorazione padre. Ad esempio, se l'utente sposta lo stato attivo su un controllo di testo in un iframe, l'iframe è l'elemento restituito dall'API activeElement nel documento del nodo dell'iframe.
Analogamente, quando l'elemento con stato attivo si trova in un albero dei nodi diverso da documentOrShadowRoot, l'elemento restituito sarà l'host che si trova nello stesso albero dei nodi di documentOrShadowRoot se documentOrShadowRoot è un predecessore inclusivo incluso nell'ombreggiatura dell'elemento attivo e null in caso contrario.
Informazioni di riferimento su MDN
activeElement: Element | null
Valore della proprietà
Element | null
ereditato da DocumentOrShadowRoot.activeElement
adoptedStyleSheets
Informazioni di riferimento su MDN
adoptedStyleSheets: CSSStyleSheet[]
Valore della proprietà
CSSStyleSheet[]
Ereditato da DocumentOrShadowRoot.adoptedStyleSheets
ATTRIBUTE_NODE
ATTRIBUTE_NODE: 2
Valore della proprietà
2
ereditato da Node.ATTRIBUTE_NODE
baseURI
La proprietà di sola baseURI lettura dell'interfaccia Node restituisce l'URL di base assoluto del documento contenente il nodo.
Informazioni di riferimento su MDN
baseURI: string
Valore della proprietà
string
ereditato da node.baseURI
CDATA_SECTION_NODE
node è un nodo CDATASection.
CDATA_SECTION_NODE: 4
Valore della proprietà
4
ereditato da Node.CDATA_SECTION_NODE
childElementCount
Informazioni di riferimento su MDN
childElementCount: number
Valore della proprietà
number
Ereditato da ParentNode.childElementCount
childNodes
La proprietà di sola childNodes lettura dell'interfaccia Node restituisce un elemento attivo a cui viene assegnato 0il primo nodo figlio.
Informazioni di riferimento su MDN
childNodes: NodeListOf<ChildNode>
Valore della proprietà
NodeListOf<ChildNode>
Ereditato da node.childNodes
children
Restituisce gli elementi figlio.
Informazioni di riferimento su MDN
children: HTMLCollection
Valore della proprietà
HTMLCollection
Ereditato da ParentNode.children
COMMENT_NODE
node è un nodo commento.
COMMENT_NODE: 8
Valore della proprietà
8
ereditato da Node.COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
node è un nodo DocumentFragment.
DOCUMENT_FRAGMENT_NODE: 11
Valore della proprietà
11
ereditato da Node.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
node è un documento.
DOCUMENT_NODE: 9
Valore della proprietà
9
ereditato da Node.DOCUMENT_NODE
DOCUMENT_POSITION_CONTAINED_BY
Impostare quando un altro è un discendente del nodo.
DOCUMENT_POSITION_CONTAINED_BY: 16
Valore della proprietà
16
ereditato da Node.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
Impostare quando un altro è un predecessore del nodo.
DOCUMENT_POSITION_CONTAINS: 8
Valore della proprietà
8
ereditato da Node.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
Impostare quando nodo e altro non si trovano nello stesso albero.
DOCUMENT_POSITION_DISCONNECTED: 1
Valore della proprietà
1
ereditato da Node.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
Impostare quando l'altro è il nodo seguente.
DOCUMENT_POSITION_FOLLOWING: 4
Valore della proprietà
4
ereditato da Node.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
Valore della proprietà
32
ereditato da Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
Impostare quando un altro nodo è precedente.
DOCUMENT_POSITION_PRECEDING: 2
Valore della proprietà
2
ereditato da Node.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
node è un doctype.
DOCUMENT_TYPE_NODE: 10
Valore della proprietà
10
ereditato da Node.DOCUMENT_TYPE_NODE
ELEMENT_NODE
node è un elemento.
ELEMENT_NODE: 1
Valore della proprietà
1
ereditato da Node.ELEMENT_NODE
ENTITY_NODE
ENTITY_NODE: 6
Valore della proprietà
6
ereditato da Node.ENTITY_NODE
ENTITY_REFERENCE_NODE
ENTITY_REFERENCE_NODE: 5
Valore della proprietà
5
ereditato da Node.ENTITY_REFERENCE_NODE
firstChild
La proprietà di sola firstChild lettura dell'interfaccia Node restituisce il primo elemento figlio del nodo nell'albero o null se il nodo non ha elementi figlio.
Informazioni di riferimento su MDN
firstChild: ChildNode | null
Valore della proprietà
ChildNode | null
ereditato da node.firstChild
firstElementChild
Restituisce il primo elemento figlio che è un elemento e null in caso contrario.
Informazioni di riferimento su MDN
firstElementChild: Element | null
Valore della proprietà
Element | null
Ereditato da ParentNode.firstElementChild
fonts
Informazioni di riferimento su MDN
fonts: FontFaceSet
Valore della proprietà
FontFaceSet
Ereditato da FontFaceSource.fonts
fullscreenElement
Restituisce l'elemento a schermo intero del documento.
Informazioni di riferimento su MDN
fullscreenElement: Element | null
Valore della proprietà
Element | null
ereditato da DocumentOrShadowRoot.fullscreenElement
isConnected
La proprietà di sola isConnected lettura dell'interfaccia Node restituisce un valore booleano che indica se il nodo è connesso (direttamente o indirettamente) a un oggetto Document.
Informazioni di riferimento su MDN
isConnected: boolean
Valore della proprietà
boolean
Ereditato da node.isConnected
lastChild
La proprietà di sola lastChild lettura dell'interfaccia Node restituisce l'ultimo elemento figlio del nodo o null se non sono presenti nodi figlio.
Informazioni di riferimento su MDN
lastChild: ChildNode | null
Valore della proprietà
ChildNode | null
ereditato da Node.lastChild
lastElementChild
Restituisce l'ultimo elemento figlio che è un elemento e null in caso contrario.
Informazioni di riferimento su MDN
lastElementChild: Element | null
Valore della proprietà
Element | null
Ereditato da ParentNode.lastElementChild
nextSibling
La proprietà di sola lettura nextSibling dell'interfaccia Node restituisce il nodo immediatamente successivo a quello specificato nel nodo padre Node.childNodes oppure restituisce null se il nodo specificato è l'ultimo elemento figlio nell'elemento padre.
Informazioni di riferimento su MDN
nextSibling: ChildNode | null
Valore della proprietà
ChildNode | null
ereditato da node.nextSibling
nodeName
La proprietà di sola lettura nodeName di Node restituisce il nome del nodo corrente come stringa.
Informazioni di riferimento su MDN
nodeName: string
Valore della proprietà
string
ereditato da node.nodeName
nodeType
La proprietà di sola nodeType lettura di un'interfaccia Node è un numero intero che identifica il nodo.
Informazioni di riferimento su MDN
nodeType: number
Valore della proprietà
number
Ereditato da node.nodeType
nodeValue
La nodeValue proprietà dell'interfaccia Node restituisce o imposta il valore del nodo corrente.
Informazioni di riferimento su MDN
nodeValue: string | null
Valore della proprietà
string | null
ereditato da node.nodeValue
NOTATION_NODE
NOTATION_NODE: 12
Valore della proprietà
12
ereditato da Node.NOTATION_NODE
onabort
Informazioni di riferimento su MDN
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: UIEvent) => any | null
ereditato da GlobalEventHandlers.onabort
onanimationcancel
Informazioni di riferimento su MDN
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
ereditato da GlobalEventHandlers.onanimationcancel
onanimationend
Informazioni di riferimento su MDN
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
ereditato da GlobalEventHandlers.onanimationend
onanimationiteration
Informazioni di riferimento su MDN
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
ereditato da GlobalEventHandlers.onanimationiteration
onanimationstart
Informazioni di riferimento su MDN
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: AnimationEvent) => any | null
Ereditato da GlobalEventHandlers.onanimationstart
onauxclick
Informazioni di riferimento su MDN
onauxclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onauxclick
onbeforeinput
Informazioni di riferimento su MDN
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: InputEvent) => any | null
ereditato da GlobalEventHandlers.onbeforeinput
onbeforematch
Informazioni di riferimento su MDN
onbeforematch: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onbeforematch
onbeforetoggle
Informazioni di riferimento su MDN
onbeforetoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Ereditato da GlobalEventHandlers.onbeforetoggle
onblur
Informazioni di riferimento su MDN
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
ereditato da GlobalEventHandlers.onblur
oncancel
Informazioni di riferimento su MDN
oncancel: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.oncancel
oncanplay
Informazioni di riferimento su MDN
oncanplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.oncanplay
oncanplaythrough
Informazioni di riferimento su MDN
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.oncanplaythrough
onchange
Informazioni di riferimento su MDN
onchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onchange
onclick
Informazioni di riferimento su MDN
onclick: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onclick
onclose
Informazioni di riferimento su MDN
onclose: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onclose
oncontextlost
Informazioni di riferimento su MDN
oncontextlost: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.oncontextlost
oncontextmenu
Informazioni di riferimento su MDN
oncontextmenu: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.oncontextmenu
oncontextrestored
Informazioni di riferimento su MDN
oncontextrestored: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.oncontextrestored
oncopy
Informazioni di riferimento su MDN
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Ereditato da GlobalEventHandlers.oncopy
oncuechange
Informazioni di riferimento su MDN
oncuechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.oncuechange
oncut
Informazioni di riferimento su MDN
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Ereditato da GlobalEventHandlers.oncut
ondblclick
Informazioni di riferimento su MDN
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.ondblclick
ondrag
Informazioni di riferimento su MDN
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondrag
ondragend
Informazioni di riferimento su MDN
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondragend
ondragenter
Informazioni di riferimento su MDN
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondragenter
ondragleave
Informazioni di riferimento su MDN
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondragleave
ondragover
Informazioni di riferimento su MDN
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondragover
ondragstart
Informazioni di riferimento su MDN
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondragstart
ondrop
Informazioni di riferimento su MDN
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: DragEvent) => any | null
ereditato da GlobalEventHandlers.ondrop
ondurationchange
Informazioni di riferimento su MDN
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.ondurationchange
onemptied
Informazioni di riferimento su MDN
onemptied: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onemptied
onended
Informazioni di riferimento su MDN
onended: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onended
onerror
Informazioni di riferimento su MDN
onerror: OnErrorEventHandler
Valore della proprietà
OnErrorEventHandler
ereditato da GlobalEventHandlers.onerror
onfocus
Informazioni di riferimento su MDN
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: FocusEvent) => any | null
ereditato da GlobalEventHandlers.onfocus
onformdata
Informazioni di riferimento su MDN
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: FormDataEvent) => any | null
ereditato da GlobalEventHandlers.onformdata
ongotpointercapture
Informazioni di riferimento su MDN
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.ongotpointercapture
oninput
Informazioni di riferimento su MDN
oninput: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.oninput
oninvalid
Informazioni di riferimento su MDN
oninvalid: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.oninvalid
onkeydown
Informazioni di riferimento su MDN
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
ereditato da GlobalEventHandlers.onkeydown
onkeypress
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
ereditato da GlobalEventHandlers.onkeypress
onkeyup
Informazioni di riferimento su MDN
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: KeyboardEvent) => any | null
Ereditato da GlobalEventHandlers.onkeyup
onload
Informazioni di riferimento su MDN
onload: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onload
onloadeddata
Informazioni di riferimento su MDN
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onloadeddata
onloadedmetadata
Informazioni di riferimento su MDN
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onloadedmetadata
onloadstart
Informazioni di riferimento su MDN
onloadstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onloadstart
onlostpointercapture
Informazioni di riferimento su MDN
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onlostpointercapture
onmousedown
Informazioni di riferimento su MDN
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmousedown
onmouseenter
Informazioni di riferimento su MDN
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmouseenter
onmouseleave
Informazioni di riferimento su MDN
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmouseleave
onmousemove
Informazioni di riferimento su MDN
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmousemove
onmouseout
Informazioni di riferimento su MDN
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmouseout
onmouseover
Informazioni di riferimento su MDN
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmouseover
onmouseup
Informazioni di riferimento su MDN
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: MouseEvent) => any | null
ereditato da GlobalEventHandlers.onmouseup
onpaste
Informazioni di riferimento su MDN
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: ClipboardEvent) => any | null
Ereditato da GlobalEventHandlers.onpaste
onpause
Informazioni di riferimento su MDN
onpause: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onpause
onplay
Informazioni di riferimento su MDN
onplay: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onplay
onplaying
Informazioni di riferimento su MDN
onplaying: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onplaying
onpointercancel
Informazioni di riferimento su MDN
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointercancel
onpointerdown
Informazioni di riferimento su MDN
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointerdown
onpointerenter
Informazioni di riferimento su MDN
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointerenter
onpointerleave
Informazioni di riferimento su MDN
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointerleave
onpointermove
Informazioni di riferimento su MDN
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointermove
onpointerout
Informazioni di riferimento su MDN
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointerout
onpointerover
Informazioni di riferimento su MDN
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointerover
onpointerrawupdate
Disponibile solo in contesti sicuri.
Informazioni di riferimento su MDN
onpointerrawupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onpointerrawupdate
onpointerup
Informazioni di riferimento su MDN
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: PointerEvent) => any | null
ereditato da GlobalEventHandlers.onpointerup
onprogress
Informazioni di riferimento su MDN
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: ProgressEvent) => any | null
ereditato da GlobalEventHandlers.onprogress
onratechange
Informazioni di riferimento su MDN
onratechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onratechange
onreset
Informazioni di riferimento su MDN
onreset: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onreset
onresize
Informazioni di riferimento su MDN
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: UIEvent) => any | null
ereditato da GlobalEventHandlers.onresize
onscroll
Informazioni di riferimento su MDN
onscroll: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onscroll
onscrollend
Informazioni di riferimento su MDN
onscrollend: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onscrollend
onsecuritypolicyviolation
Informazioni di riferimento su MDN
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any | null
ereditato da GlobalEventHandlers.onsecuritypolicyviolation
onseeked
Informazioni di riferimento su MDN
onseeked: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onseeked
onseeking
Informazioni di riferimento su MDN
onseeking: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onseeking
onselect
Informazioni di riferimento su MDN
onselect: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onselect
onselectionchange
Informazioni di riferimento su MDN
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onselectionchange
onselectstart
Informazioni di riferimento su MDN
onselectstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onselectstart
onslotchange
Informazioni di riferimento su MDN
onslotchange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onslotchange
onstalled
Informazioni di riferimento su MDN
onstalled: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onstalled
onsubmit
Informazioni di riferimento su MDN
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: SubmitEvent) => any | null
ereditato da GlobalEventHandlers.onsubmit
onsuspend
Informazioni di riferimento su MDN
onsuspend: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onsuspend
ontimeupdate
Informazioni di riferimento su MDN
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.ontimeupdate
ontoggle
Informazioni di riferimento su MDN
ontoggle: (this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: ToggleEvent) => any | null
Ereditato da GlobalEventHandlers.onggle
ontouchcancel
Informazioni di riferimento su MDN
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
ereditato da GlobalEventHandlers.ontouchcancel
ontouchend
Informazioni di riferimento su MDN
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
ereditato da GlobalEventHandlers.ontouchend
ontouchmove
Informazioni di riferimento su MDN
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
ereditato da GlobalEventHandlers.ontouchmove
ontouchstart
Informazioni di riferimento su MDN
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TouchEvent) => any | null
ereditato da GlobalEventHandlers.ontouchstart
ontransitioncancel
Informazioni di riferimento su MDN
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
ereditato da GlobalEventHandlers.ontransitioncancel
ontransitionend
Informazioni di riferimento su MDN
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
ereditato da GlobalEventHandlers.ontransitionend
ontransitionrun
Informazioni di riferimento su MDN
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Ereditato da GlobalEventHandlers.ontransitionrun
ontransitionstart
Informazioni di riferimento su MDN
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: TransitionEvent) => any | null
Ereditato da GlobalEventHandlers.ontransitionstart
onvolumechange
Informazioni di riferimento su MDN
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onvolumechange
onwaiting
Informazioni di riferimento su MDN
onwaiting: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onwaiting
onwebkitanimationend
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
Ereditato da GlobalEventHandlers.onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: Event) => any | null
ereditato da GlobalEventHandlers.onwebkittransitionend
onwheel
Informazioni di riferimento su MDN
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any | null
Valore della proprietà
(this: GlobalEventHandlers, ev: WheelEvent) => any | null
ereditato da GlobalEventHandlers.onwheel
parentElement
La proprietà di sola lettura parentElement dell'interfaccia Node restituisce l'elemento padre del nodo DOM oppure null se il nodo non ha un elemento padre oppure il relativo elemento padre non è un elemento DOM.
Informazioni di riferimento su MDN
parentElement: HTMLElement | null
Valore della proprietà
HTMLElement | null
Ereditato da node.parentElement
parentNode
La proprietà di sola lettura parentNode dell'interfaccia Node restituisce l'elemento padre del nodo specificato nell'albero DOM.
Informazioni di riferimento su MDN
parentNode: ParentNode | null
Valore della proprietà
ParentNode | null
Ereditato da Node.parentNode
pictureInPictureElement
Informazioni di riferimento su MDN
pictureInPictureElement: Element | null
Valore della proprietà
Element | null
ereditato da DocumentOrShadowRoot.pictureInPictureElement
pointerLockElement
Informazioni di riferimento su MDN
pointerLockElement: Element | null
Valore della proprietà
Element | null
Ereditato da DocumentOrShadowRoot.pointerLockElement
previousSibling
La proprietà di sola lettura previousSibling dell'interfaccia Node restituisce il nodo immediatamente precedente a quello specificato nel nodo padre o null se il nodo specificato è il primo nell'elenco.
Informazioni di riferimento su MDN
previousSibling: ChildNode | null
Valore della proprietà
ChildNode | null
ereditato da node.previousSibling
PROCESSING_INSTRUCTION_NODE
node è un nodo ProcessingInstruction.
PROCESSING_INSTRUCTION_NODE: 7
Valore della proprietà
7
ereditato da Node.PROCESSING_INSTRUCTION_NODE
styleSheets
Informazioni di riferimento su MDN
styleSheets: StyleSheetList
Valore della proprietà
StyleSheetList
Ereditato da DocumentOrShadowRoot.styleSheets
TEXT_NODE
node è un nodo Di testo.
TEXT_NODE: 3
Valore della proprietà
3
ereditato da Node.TEXT_NODE
Dettagli metodo
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
Parametri
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | AddEventListenerOptions)
Il addEventListener() metodo dell'interfaccia EventTarget configura una funzione che verrà chiamata ogni volta che l'evento specificato viene recapitato alla destinazione.
Informazioni di riferimento su MDN
function addEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
Parametri
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
adoptNode<T>(T)
Document.adoptNode() trasferisce un nodo/dom da un altro documento nel documento del metodo.
Informazioni di riferimento su MDN
function adoptNode<T>(node: T): T
Parametri
- node
-
T
Valori restituiti
T
captureEvents()
Avviso
Questa API è ora deprecata.
function captureEvents()
caretPositionFromPoint(number, number, CaretPositionFromPointOptions)
Il caretPositionFromPoint() metodo dell'interfaccia Document restituisce un oggetto CaretPosition contenente il nodo DOM, insieme all'offset di caratteri del cursore e del cursore all'interno di tale nodo.
Informazioni di riferimento su MDN
function caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null
Parametri
- x
-
number
- y
-
number
- options
-
CaretPositionFromPointOptions
Valori restituiti
CaretPosition | null
caretRangeFromPoint(number, number)
Avviso
Questa API è ora deprecata.
function caretRangeFromPoint(x: number, y: number): Range | null
Parametri
- x
-
number
- y
-
number
Valori restituiti
Range | null
clear()
Il Document.clear() metodo non esegue alcuna operazione, ma non genera alcun errore.
function clear()
close()
Il Document.close() metodo termina la scrittura in un documento, aperto con Document.open().
Informazioni di riferimento su MDN
function close()
createAttribute(string)
Il Document.createAttribute() metodo crea un nuovo nodo attributo e lo restituisce.
Informazioni di riferimento su MDN
function createAttribute(localName: string): Attr
Parametri
- localName
-
string
Valori restituiti
Attr
createAttributeNS(string | null, string)
Il Document.createAttributeNS() metodo crea un nuovo nodo attributo con l'URI dello spazio dei nomi e il nome completo specificati e lo restituisce.
Informazioni di riferimento su MDN
function createAttributeNS(namespace: string | null, qualifiedName: string): Attr
Parametri
- namespace
-
string | null
- qualifiedName
-
string
Valori restituiti
Attr
createCDATASection(string)
createCDATASection() crea un nuovo nodo di sezione CDATA e lo restituisce.
Informazioni di riferimento su MDN
function createCDATASection(data: string): CDATASection
Parametri
- data
-
string
Valori restituiti
CDATASection
createComment(string)
createComment() crea un nuovo nodo di commento e lo restituisce.
Informazioni di riferimento su MDN
function createComment(data: string): Comment
Parametri
- data
-
string
Valori restituiti
Comment
createDocumentFragment()
Crea un nuovo DocumentFragment vuoto in cui è possibile aggiungere nodi DOM per compilare un albero DOM fuori schermo.
Informazioni di riferimento su MDN
function createDocumentFragment(): DocumentFragment
Valori restituiti
DocumentFragment
createElement(string, ElementCreationOptions)
function createElement(tagName: string, options?: ElementCreationOptions): HTMLElement
Parametri
- tagName
-
string
- options
-
ElementCreationOptions
Valori restituiti
HTMLElement
createElement<K>(K, ElementCreationOptions)
In un documento HTML il document.createElement() metodo crea l'elemento HTML specificato da localNameo un HTMLUnknownElement se localName non viene riconosciuto.
Informazioni di riferimento su MDN
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]
Parametri
- tagName
-
K
- options
-
ElementCreationOptions
Valori restituiti
HTMLElementTagNameMap[K]
createElement<K>(K, ElementCreationOptions)
Avviso
Questa API è ora deprecata.
function createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]
Parametri
- tagName
-
K
- options
-
ElementCreationOptions
Valori restituiti
HTMLElementDeprecatedTagNameMap[K]
createElementNS("http://www.w3.org/1998/Math/MathML", string)
function createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement
Parametri
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
string
Valori restituiti
MathMLElement
createElementNS("http://www.w3.org/1999/xhtml", string)
Crea un elemento con l'URI dello spazio dei nomi e il nome completo specificati.
Informazioni di riferimento su MDN
function createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement
Parametri
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- qualifiedName
-
string
Valori restituiti
HTMLElement
createElementNS("http://www.w3.org/2000/svg", string)
function createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement
Parametri
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
string
Valori restituiti
SVGElement
createElementNS(string | null, string, ElementCreationOptions)
function createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element
Parametri
- namespaceURI
-
string | null
- qualifiedName
-
string
- options
-
ElementCreationOptions
Valori restituiti
Element
createElementNS(string | null, string, string | ElementCreationOptions)
function createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element
Parametri
- namespace
-
string | null
- qualifiedName
-
string
- options
-
string | ElementCreationOptions
Valori restituiti
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]
Parametri
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- qualifiedName
-
K
Valori restituiti
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]
Parametri
- namespaceURI
-
"http://www.w3.org/2000/svg"
- qualifiedName
-
K
Valori restituiti
SVGElementTagNameMap[K]
createEvent("AnimationEvent")
Crea un evento del tipo specificato.
function createEvent(eventInterface: "AnimationEvent"): AnimationEvent
Parametri
- eventInterface
-
"AnimationEvent"
Valori restituiti
AnimationEvent
createEvent("AnimationPlaybackEvent")
function createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent
Parametri
- eventInterface
-
"AnimationPlaybackEvent"
Valori restituiti
AnimationPlaybackEvent
createEvent("AudioProcessingEvent")
function createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent
Parametri
- eventInterface
-
"AudioProcessingEvent"
Valori restituiti
AudioProcessingEvent
createEvent("BeforeUnloadEvent")
function createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent
Parametri
- eventInterface
-
"BeforeUnloadEvent"
Valori restituiti
BeforeUnloadEvent
createEvent("BlobEvent")
function createEvent(eventInterface: "BlobEvent"): BlobEvent
Parametri
- eventInterface
-
"BlobEvent"
Valori restituiti
BlobEvent
createEvent("ClipboardEvent")
function createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent
Parametri
- eventInterface
-
"ClipboardEvent"
Valori restituiti
ClipboardEvent
createEvent("CloseEvent")
function createEvent(eventInterface: "CloseEvent"): CloseEvent
Parametri
- eventInterface
-
"CloseEvent"
Valori restituiti
CloseEvent
createEvent("CompositionEvent")
function createEvent(eventInterface: "CompositionEvent"): CompositionEvent
Parametri
- eventInterface
-
"CompositionEvent"
Valori restituiti
CompositionEvent
createEvent("ContentVisibilityAutoStateChangeEvent")
function createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent
Parametri
- eventInterface
-
"ContentVisibilityAutoStateChangeEvent"
Valori restituiti
ContentVisibilityAutoStateChangeEvent
createEvent("CookieChangeEvent")
function createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent
Parametri
- eventInterface
-
"CookieChangeEvent"
Valori restituiti
CookieChangeEvent
createEvent("CustomEvent")
function createEvent(eventInterface: "CustomEvent"): CustomEvent
Parametri
- eventInterface
-
"CustomEvent"
Valori restituiti
CustomEvent
createEvent("DeviceMotionEvent")
function createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent
Parametri
- eventInterface
-
"DeviceMotionEvent"
Valori restituiti
DeviceMotionEvent
createEvent("DeviceOrientationEvent")
function createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent
Parametri
- eventInterface
-
"DeviceOrientationEvent"
Valori restituiti
DeviceOrientationEvent
createEvent("DragEvent")
function createEvent(eventInterface: "DragEvent"): DragEvent
Parametri
- eventInterface
-
"DragEvent"
Valori restituiti
DragEvent
createEvent("ErrorEvent")
function createEvent(eventInterface: "ErrorEvent"): ErrorEvent
Parametri
- eventInterface
-
"ErrorEvent"
Valori restituiti
ErrorEvent
createEvent("Event")
function createEvent(eventInterface: "Event"): Event
Parametri
- eventInterface
-
"Event"
Valori restituiti
Event
createEvent("Events")
function createEvent(eventInterface: "Events"): Event
Parametri
- eventInterface
-
"Events"
Valori restituiti
Event
createEvent("FocusEvent")
function createEvent(eventInterface: "FocusEvent"): FocusEvent
Parametri
- eventInterface
-
"FocusEvent"
Valori restituiti
FocusEvent
createEvent("FontFaceSetLoadEvent")
function createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent
Parametri
- eventInterface
-
"FontFaceSetLoadEvent"
Valori restituiti
FontFaceSetLoadEvent
createEvent("FormDataEvent")
function createEvent(eventInterface: "FormDataEvent"): FormDataEvent
Parametri
- eventInterface
-
"FormDataEvent"
Valori restituiti
FormDataEvent
createEvent("GamepadEvent")
function createEvent(eventInterface: "GamepadEvent"): GamepadEvent
Parametri
- eventInterface
-
"GamepadEvent"
Valori restituiti
GamepadEvent
createEvent("HashChangeEvent")
function createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent
Parametri
- eventInterface
-
"HashChangeEvent"
Valori restituiti
HashChangeEvent
createEvent("IDBVersionChangeEvent")
function createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent
Parametri
- eventInterface
-
"IDBVersionChangeEvent"
Valori restituiti
IDBVersionChangeEvent
createEvent("InputEvent")
function createEvent(eventInterface: "InputEvent"): InputEvent
Parametri
- eventInterface
-
"InputEvent"
Valori restituiti
InputEvent
createEvent("KeyboardEvent")
function createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent
Parametri
- eventInterface
-
"KeyboardEvent"
Valori restituiti
KeyboardEvent
createEvent("MediaEncryptedEvent")
function createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent
Parametri
- eventInterface
-
"MediaEncryptedEvent"
Valori restituiti
MediaEncryptedEvent
createEvent("MediaKeyMessageEvent")
function createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent
Parametri
- eventInterface
-
"MediaKeyMessageEvent"
Valori restituiti
MediaKeyMessageEvent
createEvent("MediaQueryListEvent")
function createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent
Parametri
- eventInterface
-
"MediaQueryListEvent"
Valori restituiti
MediaQueryListEvent
createEvent("MediaStreamTrackEvent")
function createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent
Parametri
- eventInterface
-
"MediaStreamTrackEvent"
Valori restituiti
MediaStreamTrackEvent
createEvent("MessageEvent")
function createEvent(eventInterface: "MessageEvent"): MessageEvent
Parametri
- eventInterface
-
"MessageEvent"
Valori restituiti
MessageEvent
createEvent("MIDIConnectionEvent")
function createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent
Parametri
- eventInterface
-
"MIDIConnectionEvent"
Valori restituiti
MIDIConnectionEvent
createEvent("MIDIMessageEvent")
function createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent
Parametri
- eventInterface
-
"MIDIMessageEvent"
Valori restituiti
MIDIMessageEvent
createEvent("MouseEvent")
function createEvent(eventInterface: "MouseEvent"): MouseEvent
Parametri
- eventInterface
-
"MouseEvent"
Valori restituiti
MouseEvent
createEvent("MouseEvents")
function createEvent(eventInterface: "MouseEvents"): MouseEvent
Parametri
- eventInterface
-
"MouseEvents"
Valori restituiti
MouseEvent
createEvent("OfflineAudioCompletionEvent")
function createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent
Parametri
- eventInterface
-
"OfflineAudioCompletionEvent"
Valori restituiti
OfflineAudioCompletionEvent
createEvent("PageRevealEvent")
function createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent
Parametri
- eventInterface
-
"PageRevealEvent"
Valori restituiti
PageRevealEvent
createEvent("PageSwapEvent")
function createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent
Parametri
- eventInterface
-
"PageSwapEvent"
Valori restituiti
PageSwapEvent
createEvent("PageTransitionEvent")
function createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent
Parametri
- eventInterface
-
"PageTransitionEvent"
Valori restituiti
PageTransitionEvent
createEvent("PaymentMethodChangeEvent")
function createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent
Parametri
- eventInterface
-
"PaymentMethodChangeEvent"
Valori restituiti
PaymentMethodChangeEvent
createEvent("PaymentRequestUpdateEvent")
function createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent
Parametri
- eventInterface
-
"PaymentRequestUpdateEvent"
Valori restituiti
PaymentRequestUpdateEvent
createEvent("PictureInPictureEvent")
function createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent
Parametri
- eventInterface
-
"PictureInPictureEvent"
Valori restituiti
PictureInPictureEvent
createEvent("PointerEvent")
function createEvent(eventInterface: "PointerEvent"): PointerEvent
Parametri
- eventInterface
-
"PointerEvent"
Valori restituiti
PointerEvent
createEvent("PopStateEvent")
function createEvent(eventInterface: "PopStateEvent"): PopStateEvent
Parametri
- eventInterface
-
"PopStateEvent"
Valori restituiti
PopStateEvent
createEvent("ProgressEvent")
function createEvent(eventInterface: "ProgressEvent"): ProgressEvent
Parametri
- eventInterface
-
"ProgressEvent"
Valori restituiti
ProgressEvent
createEvent("PromiseRejectionEvent")
function createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent
Parametri
- eventInterface
-
"PromiseRejectionEvent"
Valori restituiti
PromiseRejectionEvent
createEvent("RTCDataChannelEvent")
function createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent
Parametri
- eventInterface
-
"RTCDataChannelEvent"
Valori restituiti
RTCDataChannelEvent
createEvent("RTCDTMFToneChangeEvent")
function createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent
Parametri
- eventInterface
-
"RTCDTMFToneChangeEvent"
Valori restituiti
RTCDTMFToneChangeEvent
createEvent("RTCErrorEvent")
function createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent
Parametri
- eventInterface
-
"RTCErrorEvent"
Valori restituiti
RTCErrorEvent
createEvent("RTCPeerConnectionIceErrorEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent
Parametri
- eventInterface
-
"RTCPeerConnectionIceErrorEvent"
Valori restituiti
RTCPeerConnectionIceErrorEvent
createEvent("RTCPeerConnectionIceEvent")
function createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent
Parametri
- eventInterface
-
"RTCPeerConnectionIceEvent"
Valori restituiti
RTCPeerConnectionIceEvent
createEvent("RTCTrackEvent")
function createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent
Parametri
- eventInterface
-
"RTCTrackEvent"
Valori restituiti
RTCTrackEvent
createEvent("SecurityPolicyViolationEvent")
function createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent
Parametri
- eventInterface
-
"SecurityPolicyViolationEvent"
Valori restituiti
SecurityPolicyViolationEvent
createEvent("SpeechSynthesisErrorEvent")
function createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent
Parametri
- eventInterface
-
"SpeechSynthesisErrorEvent"
Valori restituiti
SpeechSynthesisErrorEvent
createEvent("SpeechSynthesisEvent")
function createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent
Parametri
- eventInterface
-
"SpeechSynthesisEvent"
Valori restituiti
SpeechSynthesisEvent
createEvent("StorageEvent")
function createEvent(eventInterface: "StorageEvent"): StorageEvent
Parametri
- eventInterface
-
"StorageEvent"
Valori restituiti
StorageEvent
createEvent("SubmitEvent")
function createEvent(eventInterface: "SubmitEvent"): SubmitEvent
Parametri
- eventInterface
-
"SubmitEvent"
Valori restituiti
SubmitEvent
createEvent("TextEvent")
function createEvent(eventInterface: "TextEvent"): TextEvent
Parametri
- eventInterface
-
"TextEvent"
Valori restituiti
TextEvent
createEvent("ToggleEvent")
function createEvent(eventInterface: "ToggleEvent"): ToggleEvent
Parametri
- eventInterface
-
"ToggleEvent"
Valori restituiti
ToggleEvent
createEvent("TouchEvent")
function createEvent(eventInterface: "TouchEvent"): TouchEvent
Parametri
- eventInterface
-
"TouchEvent"
Valori restituiti
TouchEvent
createEvent("TrackEvent")
function createEvent(eventInterface: "TrackEvent"): TrackEvent
Parametri
- eventInterface
-
"TrackEvent"
Valori restituiti
TrackEvent
createEvent("TransitionEvent")
function createEvent(eventInterface: "TransitionEvent"): TransitionEvent
Parametri
- eventInterface
-
"TransitionEvent"
Valori restituiti
TransitionEvent
createEvent("UIEvent")
function createEvent(eventInterface: "UIEvent"): UIEvent
Parametri
- eventInterface
-
"UIEvent"
Valori restituiti
UIEvent
createEvent("UIEvents")
function createEvent(eventInterface: "UIEvents"): UIEvent
Parametri
- eventInterface
-
"UIEvents"
Valori restituiti
UIEvent
createEvent("WebGLContextEvent")
function createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent
Parametri
- eventInterface
-
"WebGLContextEvent"
Valori restituiti
WebGLContextEvent
createEvent("WheelEvent")
function createEvent(eventInterface: "WheelEvent"): WheelEvent
Parametri
- eventInterface
-
"WheelEvent"
Valori restituiti
WheelEvent
createEvent(string)
function createEvent(eventInterface: string): Event
Parametri
- eventInterface
-
string
Valori restituiti
Event
createNodeIterator(Node, number, NodeFilter | null)
Il Document.createNodeIterator() metodo restituisce un nuovo NodeIterator oggetto .
Informazioni di riferimento su MDN
function createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator
Parametri
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Valori restituiti
NodeIterator
createProcessingInstruction(string, string)
createProcessingInstruction() genera un nuovo nodo di istruzione di elaborazione e lo restituisce.
Informazioni di riferimento su MDN
function createProcessingInstruction(target: string, data: string): ProcessingInstruction
Parametri
- target
-
string
- data
-
string
Valori restituiti
ProcessingInstruction
createRange()
Il Document.createRange() metodo restituisce un nuovo js-nolint createRange() oggetto None.
Informazioni di riferimento su MDN
function createRange(): Range
Valori restituiti
Range
createTextNode(string)
Crea un nuovo nodo Text.
Informazioni di riferimento su MDN
function createTextNode(data: string): Text
Parametri
- data
-
string
Valori restituiti
Text
createTreeWalker(Node, number, NodeFilter | null)
Il Document.createTreeWalker() metodo creator restituisce un oggetto TreeWalker appena creato.
Informazioni di riferimento su MDN
function createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker
Parametri
- root
-
Node
- whatToShow
-
number
- filter
-
NodeFilter | null
Valori restituiti
TreeWalker
execCommand(string, boolean, string)
Il execCommand metodo implementa più comandi diversi.
function execCommand(commandId: string, showUI?: boolean, value?: string): boolean
Parametri
- commandId
-
string
- showUI
-
boolean
- value
-
string
Valori restituiti
boolean
exitFullscreen()
Il metodo exitFullscreen() Document richiede che l'elemento di questo documento attualmente presentato in modalità schermo intero venga estratto dalla modalità schermo intero, ripristinando lo stato precedente dello schermo.
Informazioni di riferimento su MDN
function exitFullscreen(): Promise<void>
Valori restituiti
Promise<void>
exitPictureInPicture()
Il exitPictureInPicture() metodo dell'interfaccia Documento richiede che un video contenuto in questo documento, che è attualmente mobile, venga estratto dalla modalità immagine in-picture, ripristinando lo stato precedente dello schermo.
Informazioni di riferimento su MDN
function exitPictureInPicture(): Promise<void>
Valori restituiti
Promise<void>
exitPointerLock()
Il exitPointerLock() metodo dell'interfaccia Document rilascia in modo asincrono un blocco puntatore richiesto in precedenza tramite Element.requestPointerLock.
Informazioni di riferimento su MDN
function exitPointerLock()
getElementById(string)
Restituisce il primo elemento all'interno dei discendenti del nodo il cui ID è elementId.
Informazioni di riferimento su MDN
function getElementById(elementId: string): HTMLElement | null
Parametri
- elementId
-
string
Valori restituiti
HTMLElement | null
getElementsByClassName(string)
Metodo getElementsByClassName di tutti gli elementi figlio con tutti i nomi di classe specificati.
Informazioni di riferimento su MDN
function getElementsByClassName(classNames: string): HTMLCollectionOf<Element>
Parametri
- classNames
-
string
Valori restituiti
HTMLCollectionOf<Element>
getElementsByName(string)
Il getElementsByName() metodo dell'oggetto Document restituisce un insieme NodeList di elementi con un attributo specificato name nel documento.
Informazioni di riferimento su MDN
function getElementsByName(elementName: string): NodeListOf<HTMLElement>
Parametri
- elementName
-
string
Valori restituiti
NodeListOf<HTMLElement>
getElementsByTagName(string)
function getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>
Parametri
- qualifiedName
-
string
Valori restituiti
HTMLCollectionOf<Element>
getElementsByTagName<K>(K)
Viene getElementsByTagName eseguita la ricerca del metodo del documento completo, incluso il nodo radice.
Informazioni di riferimento su MDN
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Parametri
- qualifiedName
-
K
Valori restituiti
HTMLCollectionOf<HTMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>
Parametri
- qualifiedName
-
K
Valori restituiti
HTMLCollectionOf<SVGElementTagNameMap[K]>
getElementsByTagName<K>(K)
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>
Parametri
- qualifiedName
-
K
Valori restituiti
HTMLCollectionOf<MathMLElementTagNameMap[K]>
getElementsByTagName<K>(K)
Avviso
Questa API è ora deprecata.
function getElementsByTagName<K>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>
Parametri
- qualifiedName
-
K
Valori restituiti
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>
Parametri
- namespaceURI
-
"http://www.w3.org/1998/Math/MathML"
- localName
-
string
Valori restituiti
HTMLCollectionOf<MathMLElement>
getElementsByTagNameNS("http://www.w3.org/1999/xhtml", string)
Restituisce un elenco di elementi con il nome di tag specificato appartenente allo spazio dei nomi specificato.
Informazioni di riferimento su MDN
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>
Parametri
- namespaceURI
-
"http://www.w3.org/1999/xhtml"
- localName
-
string
Valori restituiti
HTMLCollectionOf<HTMLElement>
getElementsByTagNameNS("http://www.w3.org/2000/svg", string)
function getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>
Parametri
- namespaceURI
-
"http://www.w3.org/2000/svg"
- localName
-
string
Valori restituiti
HTMLCollectionOf<SVGElement>
getElementsByTagNameNS(string | null, string)
function getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>
Parametri
- namespace
-
string | null
- localName
-
string
Valori restituiti
HTMLCollectionOf<Element>
getSelection()
Il getSelection() metodo dell'interfaccia Document restituisce l'oggetto Selection associato a questo documento, che rappresenta l'intervallo di testo selezionato dall'utente o la posizione corrente del cursore.
Informazioni di riferimento su MDN
function getSelection(): Selection | null
Valori restituiti
Selection | null
hasFocus()
Il hasFocus() metodo dell'interfaccia Document restituisce un valore booleano che indica se il documento o qualsiasi elemento all'interno del documento ha lo stato attivo.
Informazioni di riferimento su MDN
function hasFocus(): boolean
Valori restituiti
boolean
hasStorageAccess()
Il hasStorageAccess() metodo dell'interfaccia Document restituisce una promessa che viene risolta con un valore booleano che indica se il documento ha accesso a cookie non partizionati di terze parti.
Informazioni di riferimento su MDN
function hasStorageAccess(): Promise<boolean>
Valori restituiti
Promise<boolean>
importNode<T>(T, boolean | ImportNodeOptions)
Il metodo dell'oggetto importNode() Document crea una copia di un oggetto inserito nel documento corrente in un secondo momento.
Informazioni di riferimento su MDN
function importNode<T>(node: T, options?: boolean | ImportNodeOptions): T
Parametri
- node
-
T
- options
-
boolean | ImportNodeOptions
Valori restituiti
T
open(string | URL, string, string)
function open(url: string | URL, name: string, features: string): Window | null
Parametri
- url
-
string | URL
- name
-
string
- features
-
string
Valori restituiti
Window | null
open(string, string)
Il Document.open() metodo apre un documento per Questo è dotato di alcuni effetti collaterali.
Informazioni di riferimento su MDN
function open(unused1?: string, unused2?: string): Document
Parametri
- unused1
-
string
- unused2
-
string
Valori restituiti
queryCommandEnabled(string)
Il Document.queryCommandEnabled() metodo indica se il comando dell'editor specificato è abilitato dal browser.
function queryCommandEnabled(commandId: string): boolean
Parametri
- commandId
-
string
Valori restituiti
boolean
queryCommandIndeterm(string)
Avviso
Questa API è ora deprecata.
function queryCommandIndeterm(commandId: string): boolean
Parametri
- commandId
-
string
Valori restituiti
boolean
queryCommandState(string)
Il queryCommandState() metodo indica se la selezione corrente ha un determinato comando Document.execCommand() applicato.
function queryCommandState(commandId: string): boolean
Parametri
- commandId
-
string
Valori restituiti
boolean
queryCommandSupported(string)
Il Document.queryCommandSupported() metodo indica se il comando dell'editor specificato è supportato dal browser.
function queryCommandSupported(commandId: string): boolean
Parametri
- commandId
-
string
Valori restituiti
boolean
queryCommandValue(string)
Avviso
Questa API è ora deprecata.
function queryCommandValue(commandId: string): string
Parametri
- commandId
-
string
Valori restituiti
string
releaseEvents()
Avviso
Questa API è ora deprecata.
function releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
Parametri
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: Document, ev: DocumentEventMap[K]) => any, boolean | EventListenerOptions)
Il removeEventListener() metodo dell'interfaccia EventTarget rimuove un listener di eventi registrato in precedenza con EventTarget.addEventListener() dalla destinazione.
Informazioni di riferimento su MDN
function removeEventListener<K>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions)
Parametri
- type
-
K
- listener
-
(this: Document, ev: DocumentEventMap[K]) => any
- options
-
boolean | EventListenerOptions
requestStorageAccess()
Il requestStorageAccess() metodo dell'interfaccia Document consente al contenuto caricato in un contesto di terze parti (ad esempio, incorporato in un iframe) di richiedere l'accesso ai cookie di terze parti e allo stato non partizionato.
Informazioni di riferimento su MDN
function requestStorageAccess(): Promise<void>
Valori restituiti
Promise<void>
startViewTransition(ViewTransitionUpdateCallback | StartViewTransitionOptions)
Il startViewTransition() metodo dell'interfaccia Document avvia una nuova transizione di visualizzazione dello stesso documento (SPA) e restituisce un oggetto ViewTransition per rappresentarlo.
Informazioni di riferimento su MDN
function startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition
Parametri
- callbackOptions
-
ViewTransitionUpdateCallback | StartViewTransitionOptions
Valori restituiti
ViewTransition
write(string[])
Il write() metodo dell'interfaccia Document scrive testo in uno o più parametri TrustedHTML o stringa in un flusso di documenti aperto da document.open().
function write(text: string[])
Parametri
- text
-
string[]
writeln(string[])
Il writeln() metodo dell'interfaccia Document scrive testo in uno o più parametri TrustedHTML o stringa in un flusso di documenti aperto da document.open(), seguito da un carattere di nuova riga.
Informazioni di riferimento su MDN
function writeln(text: string[])
Parametri
- text
-
string[]
Dettagli dei metodi ereditati
append((string | Node)[])
Inserisce nodi dopo l'ultimo elemento figlio del nodo, sostituendo le stringhe nei nodi con nodi di testo equivalenti.
Genera un'eccezione DOMException "HierarchyRequestError" se i vincoli dell'albero dei nodi vengono violati.
Informazioni di riferimento su MDN
function append(nodes: (string | Node)[])
Parametri
- nodes
-
(string | Node)[]
Ereditato da ParentNode.append
appendChild<T>(T)
Il appendChild() metodo dell'interfaccia Node aggiunge un nodo alla fine dell'elenco di elementi figlio di un nodo padre specificato.
Informazioni di riferimento su MDN
function appendChild<T>(node: T): T
Parametri
- node
-
T
Valori restituiti
T
Ereditato da Node.appendChild
cloneNode(boolean)
Il cloneNode() metodo dell'interfaccia Node restituisce un duplicato del nodo in cui è stato chiamato questo metodo.
Informazioni di riferimento su MDN
function cloneNode(subtree?: boolean): Node
Parametri
- subtree
-
boolean
Valori restituiti
Node
Ereditato da Node.cloneNode
compareDocumentPosition(Node)
Il compareDocumentPosition() metodo dell'interfaccia Node segnala la posizione del nodo dell'argomento rispetto al nodo in cui viene chiamato.
Informazioni di riferimento su MDN
function compareDocumentPosition(other: Node): number
Parametri
- other
-
Node
Valori restituiti
number
Ereditato da node.compareDocumentPosition
contains(Node | null)
Il contains() metodo dell'interfaccia Node restituisce un valore booleano che indica se un nodo è discendente di un determinato nodo, ovvero il nodo stesso, uno dei relativi figli diretti (Node.childNodes), uno degli elementi figlio diretti e così via.
Informazioni di riferimento su MDN
function contains(other: Node | null): boolean
Parametri
- other
-
Node | null
Valori restituiti
boolean
ereditato da node.contains
createExpression(string, XPathNSResolver | null)
Informazioni di riferimento su MDN
function createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression
Parametri
- expression
-
string
- resolver
-
XPathNSResolver | null
Valori restituiti
XPathExpression
Ereditato da XPathEvaluatorBase.createExpression
createNSResolver(Node)
function createNSResolver(nodeResolver: Node): Node
Parametri
- nodeResolver
-
Node
Valori restituiti
Node
Ereditato da XPathEvaluatorBase.createNSResolver
dispatchEvent(Event)
Il dispatchEvent() metodo di EventTarget invia un evento all'oggetto , richiamando in modo sincrono i listener di eventi interessati nell'ordine appropriato.
Informazioni di riferimento su MDN
function dispatchEvent(event: Event): boolean
Parametri
- event
-
Event
Valori restituiti
boolean
Ereditato da node.dispatchEvent
elementFromPoint(number, number)
function elementFromPoint(x: number, y: number): Element | null
Parametri
- x
-
number
- y
-
number
Valori restituiti
Element | null
Ereditato da DocumentOrShadowRoot.elementFromPoint
elementsFromPoint(number, number)
function elementsFromPoint(x: number, y: number): Element[]
Parametri
- x
-
number
- y
-
number
Valori restituiti
Element[]
Ereditato da DocumentOrShadowRoot.elementsFromPoint
evaluate(string, Node, XPathNSResolver | null, number, XPathResult | null)
Informazioni di riferimento su MDN
function evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult
Parametri
- expression
-
string
- contextNode
-
Node
- resolver
-
XPathNSResolver | null
- type
-
number
- result
-
XPathResult | null
Valori restituiti
XPathResult
Ereditato da XPathEvaluatorBase.evaluate
getAnimations()
Informazioni di riferimento su MDN
function getAnimations(): Animation[]
Valori restituiti
Animation[]
ereditato da DocumentOrShadowRoot.getAnimations
getRootNode(GetRootNodeOptions)
Il getRootNode() metodo dell'interfaccia Node restituisce la radice dell'oggetto di contesto, che facoltativamente include la radice dell'ombreggiatura, se disponibile.
Informazioni di riferimento su MDN
function getRootNode(options?: GetRootNodeOptions): Node
Parametri
- options
-
GetRootNodeOptions
Valori restituiti
Node
ereditato da Node.getRootNode
hasChildNodes()
Il hasChildNodes() metodo dell'interfaccia Node restituisce un valore booleano che indica se il nodo specificato ha nodi figlio o meno.
Informazioni di riferimento su MDN
function hasChildNodes(): boolean
Valori restituiti
boolean
Ereditato da node.hasChildNodes
insertBefore<T>(T, Node | null)
Il insertBefore() metodo dell'interfaccia Node inserisce un nodo prima di un nodo di riferimento come figlio di un nodo padre specificato.
Informazioni di riferimento su MDN
function insertBefore<T>(node: T, child: Node | null): T
Parametri
- node
-
T
- child
-
Node | null
Valori restituiti
T
Ereditato da Node.insertBefore
isDefaultNamespace(string | null)
Il isDefaultNamespace() metodo dell'interfaccia Node accetta un URI dello spazio dei nomi come argomento.
Informazioni di riferimento su MDN
function isDefaultNamespace(namespace: string | null): boolean
Parametri
- namespace
-
string | null
Valori restituiti
boolean
Ereditato da Node.isDefaultNamespace
isEqualNode(Node | null)
Il isEqualNode() metodo dell'interfaccia Node verifica se due nodi sono uguali.
Informazioni di riferimento su MDN
function isEqualNode(otherNode: Node | null): boolean
Parametri
- otherNode
-
Node | null
Valori restituiti
boolean
Ereditato da node.isEqualNode
isSameNode(Node | null)
Il isSameNode() metodo dell'interfaccia Node è un alias legacy per l'operatore === di uguaglianza strict.
Informazioni di riferimento su MDN
function isSameNode(otherNode: Node | null): boolean
Parametri
- otherNode
-
Node | null
Valori restituiti
boolean
Ereditato da Node.isSameNode
lookupNamespaceURI(string | null)
Il lookupNamespaceURI() metodo dell'interfaccia Node accetta un prefisso come parametro e restituisce l'URI dello spazio dei nomi associato al nodo specificato se trovato (e null in caso contrario).
Informazioni di riferimento su MDN
function lookupNamespaceURI(prefix: string | null): string | null
Parametri
- prefix
-
string | null
Valori restituiti
string | null
Ereditato da Node.lookupNamespaceURI
lookupPrefix(string | null)
Il lookupPrefix() metodo dell'interfaccia Node restituisce una stringa contenente il prefisso per un URI dello spazio dei nomi specificato, se presente e null in caso contrario.
Informazioni di riferimento su MDN
function lookupPrefix(namespace: string | null): string | null
Parametri
- namespace
-
string | null
Valori restituiti
string | null
ereditato da node.lookupPrefix
normalize()
Il normalize() metodo dell'interfaccia Node inserisce il nodo specificato e tutto il relativo sottoalbero in una maschera normalizzata .
Informazioni di riferimento su MDN
function normalize()
Ereditato da Node.normalize
prepend((string | Node)[])
Inserisce i nodi prima del primo elemento figlio del nodo, sostituendo le stringhe nei nodi con nodi text equivalenti.
Genera un'eccezione DOMException "HierarchyRequestError" se i vincoli dell'albero dei nodi vengono violati.
Informazioni di riferimento su MDN
function prepend(nodes: (string | Node)[])
Parametri
- nodes
-
(string | Node)[]
Ereditato da ParentNode.prepend
querySelector<E>(string)
function querySelector<E>(selectors: string): E | null
Parametri
- selectors
-
string
Valori restituiti
E | null
Ereditato da ParentNode.querySelector
querySelector<K>(K)
Restituisce il primo elemento discendente del nodo che corrisponde ai selettori.
Informazioni di riferimento su MDN
function querySelector<K>(selectors: K): HTMLElementTagNameMap[K] | null
Parametri
- selectors
-
K
Valori restituiti
HTMLElementTagNameMap[K] | null
Ereditato da ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): SVGElementTagNameMap[K] | null
Parametri
- selectors
-
K
Valori restituiti
SVGElementTagNameMap[K] | null
Ereditato da ParentNode.querySelector
querySelector<K>(K)
function querySelector<K>(selectors: K): MathMLElementTagNameMap[K] | null
Parametri
- selectors
-
K
Valori restituiti
MathMLElementTagNameMap[K] | null
Ereditato da ParentNode.querySelector
querySelector<K>(K)
Avviso
Questa API è ora deprecata.
function querySelector<K>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null
Parametri
- selectors
-
K
Valori restituiti
HTMLElementDeprecatedTagNameMap[K] | null
Ereditato da ParentNode.querySelector
querySelectorAll<E>(string)
function querySelectorAll<E>(selectors: string): NodeListOf<E>
Parametri
- selectors
-
string
Valori restituiti
NodeListOf<E>
Ereditato da ParentNode.querySelectorAll
querySelectorAll<K>(K)
Restituisce tutti i discendenti di elemento del nodo che corrispondono ai selettori.
Informazioni di riferimento su MDN
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>
Parametri
- selectors
-
K
Valori restituiti
NodeListOf<HTMLElementTagNameMap[K]>
Ereditato da ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>
Parametri
- selectors
-
K
Valori restituiti
NodeListOf<SVGElementTagNameMap[K]>
Ereditato da ParentNode.querySelectorAll
querySelectorAll<K>(K)
function querySelectorAll<K>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>
Parametri
- selectors
-
K
Valori restituiti
NodeListOf<MathMLElementTagNameMap[K]>
Ereditato da ParentNode.querySelectorAll
querySelectorAll<K>(K)
Avviso
Questa API è ora deprecata.
function querySelectorAll<K>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Parametri
- selectors
-
K
Valori restituiti
NodeListOf<HTMLElementDeprecatedTagNameMap[K]>
Ereditato da ParentNode.querySelectorAll
removeChild<T>(T)
Il removeChild() metodo dell'interfaccia Node rimuove un nodo figlio dal DOM e restituisce il nodo rimosso.
Informazioni di riferimento su MDN
function removeChild<T>(child: T): T
Parametri
- child
-
T
Valori restituiti
T
Ereditato da Node.removeChild
replaceChild<T>(Node, T)
Il replaceChild() metodo dell'interfaccia Node sostituisce un nodo figlio all'interno del nodo (padre) specificato.
Informazioni di riferimento su MDN
function replaceChild<T>(node: Node, child: T): T
Parametri
- node
-
Node
- child
-
T
Valori restituiti
T
Ereditato da Node.replaceChild
replaceChildren((string | Node)[])
Sostituire tutti gli elementi figlio del nodo con nodi, sostituendo le stringhe nei nodi con nodi di testo equivalenti.
Genera un'eccezione DOMException "HierarchyRequestError" se i vincoli dell'albero dei nodi vengono violati.
Informazioni di riferimento su MDN
function replaceChildren(nodes: (string | Node)[])
Parametri
- nodes
-
(string | Node)[]
Ereditato da ParentNode.replaceChildren