From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/it/web/api/document/body/index.html | 88 ------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 files/it/web/api/document/body/index.html (limited to 'files/it/web/api/document/body') diff --git a/files/it/web/api/document/body/index.html b/files/it/web/api/document/body/index.html deleted file mode 100644 index e13f8e1400..0000000000 --- a/files/it/web/api/document/body/index.html +++ /dev/null @@ -1,88 +0,0 @@ ---- -title: Document.body -slug: Web/API/Document/body -tags: - - API - - DOM - - HTML DOM - - Proprietà - - Referenza -translation_of: Web/API/Document/body ---- -
{{APIRef("DOM")}}
- -

La proprietà Document.body rappresenta il nodo {{HTMLElement("body")}} o {{HTMLElement("frameset")}} del documento corrente, o null se non esiste alcun elemento di questo tipo.

- -

Sintassi

- -
var objRef = document.body;
-document.body = objRef;
- -

Esempio

- -
// Dato questo HTML: <body id="oldBodyElement"></body>
-alert(document.body.id); // "oldBodyElement"
-
-var aNewBodyElement = document.createElement("body");
-
-aNewBodyElement.id = "newBodyElement";
-document.body = aNewBodyElement;
-alert(document.body.id); // "newBodyElement"
-
- -

Appunti

- -

document.body è l'elemento che contiene il contenuto per il documento. Nei documenti con contenuto <body> restituisce l'elemento <body>, e nei documenti frameset, restituisce l'elemento <frameset> più esterno.

- -

Anche se body è settabile, l'impostazione di un nuovo corpo su un documento rimuoverà efficacemente tutti i figli attuali dell'elemento <body>.

- -

Specifiche

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SpecificaStatoCommento
{{SpecName('HTML WHATWG','dom.html#dom-document-body','Document.body')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5.1','dom.html#dom-document-body','Document.body')}}{{Spec2('HTML5.1')}} 
{{SpecName('HTML5 W3C','dom.html#dom-document-body','Document.body')}}{{Spec2('HTML5 W3C')}} 
{{SpecName('DOM2 HTML','html.html#ID-56360201','Document.body')}}{{Spec2('DOM2 HTML')}} 
{{SpecName('DOM1','level-one-html.html#attribute-body','Document.body')}}{{Spec2('DOM1')}}Definizione iniziale.
- -

Compatibilità con i browser

- - - -
{{Compat("api.Document.body")}}
- -

Vedi anche

- - -- cgit v1.2.3-54-g00ecf