aboutsummaryrefslogtreecommitdiff
path: root/files/hu/web/api
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/hu/web/api
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/hu/web/api')
-rw-r--r--files/hu/web/api/document/createtextnode/index.html82
-rw-r--r--files/hu/web/api/document/index.html665
-rw-r--r--files/hu/web/api/document_object_model/index.html20
-rw-r--r--files/hu/web/api/fetch_api/index.html107
-rw-r--r--files/hu/web/api/file/index.html226
-rw-r--r--files/hu/web/api/geolocation/index.html118
-rw-r--r--files/hu/web/api/htmlbrelement/index.html33
-rw-r--r--files/hu/web/api/index.html18
-rw-r--r--files/hu/web/api/websockets_api/index.html195
-rw-r--r--files/hu/web/api/webxr_device_api/index.html197
-rw-r--r--files/hu/web/api/window/alert/index.html72
-rw-r--r--files/hu/web/api/window/index.html729
-rw-r--r--files/hu/web/api/window/stop/index.html20
-rw-r--r--files/hu/web/api/worker/index.html147
-rw-r--r--files/hu/web/api/xmlhttprequest/index.html235
-rw-r--r--files/hu/web/api/xmlhttprequest/using_xmlhttprequest/index.html792
16 files changed, 0 insertions, 3656 deletions
diff --git a/files/hu/web/api/document/createtextnode/index.html b/files/hu/web/api/document/createtextnode/index.html
deleted file mode 100644
index 6fc2489f34..0000000000
--- a/files/hu/web/api/document/createtextnode/index.html
+++ /dev/null
@@ -1,82 +0,0 @@
----
-title: Document.createTextNode()
-slug: Web/API/Document/createTextNode
-tags:
- - API
- - DOM
- - Document
- - Method
- - Reference
- - Szöveg
- - creatTextNode
-translation_of: Web/API/Document/createTextNode
----
-<div>{{APIRef("DOM")}}</div>
-
-<p>Készít egy új {{domxref("Text")}} node-ot. Ezt a metódust használhatod arra hogy escape-eld a HTML karaktereket a szövegből, mint pl "&lt;" vagy "&amp;"</p>
-
-<h2 id="Syntax">Syntax</h2>
-
-<pre class="syntaxbox">var <var>textNode</var> = document.createTextNode(<var>text</var>);
-</pre>
-
-<ul>
- <li><var>textNode</var> egy új {{domxref("Text")}} node.</li>
- <li><var>text</var> egy <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">szöveg</a> amit szeretnénk a textNode-ba elhelyezni.</li>
-</ul>
-
-<h2 id="Példa">Példa</h2>
-
-<pre class="brush: html">&lt;!DOCTYPE html&gt;
-&lt;html lang="en"&gt;
-&lt;head&gt;
-&lt;title&gt;createTextNode example&lt;/title&gt;
-&lt;script&gt;
-function addTextNode(text) {
- var newtext = document.createTextNode(text),
- p1 = document.getElementById("p1");
-
- p1.appendChild(newtext);
-}
-&lt;/script&gt;
-&lt;/head&gt;
-
-&lt;body&gt;
- &lt;button onclick="addTextNode('IGEN! ');"&gt;IGEN!&lt;/button&gt;
- &lt;button onclick="addTextNode('NEM! ');"&gt;NEM!&lt;/button&gt;
- &lt;button onclick="addTextNode('ESCAPE &lt;strong&gt;BOLD&lt;/strong&gt; AND &amp;bull; ENTITIES! ');"&gt;ESCAPE &lt;strong&gt;BOLD&lt;/strong&gt; AND &amp;bull; ENTITIES!&lt;/button&gt;
-
- &lt;hr /&gt;
-
- &lt;p id="p1"&gt;First line of paragraph.&lt;/p&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-
-</pre>
-
-<p>{{EmbedLiveSample('Example')}}</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('DOM WHATWG', '#dom-document-createtextnode', 'Document: createTextNode')}}</td>
- <td>{{Spec2('DOM WHATWG')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Document.createTextNode")}}</p>
diff --git a/files/hu/web/api/document/index.html b/files/hu/web/api/document/index.html
deleted file mode 100644
index a8181b06b7..0000000000
--- a/files/hu/web/api/document/index.html
+++ /dev/null
@@ -1,665 +0,0 @@
----
-title: Document
-slug: Web/API/Document
-tags:
- - API
- - DOM
- - Document
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
-translation_of: Web/API/Document
----
-<div>{{APIRef("DOM")}}</div>
-
-<p><span class="seoSummary">The <strong><code>Document</code></strong> interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the <a href="/en-US/docs/Using_the_W3C_DOM_Level_1_Core">DOM tree</a>.</span> The DOM tree includes elements such as {{HTMLElement("body")}} and {{HTMLElement("table")}}, among <a href="/en-US/docs/Web/HTML/Element">many others</a>. It provides functionality globally to the document, like how to obtain the page's URL and create new elements in the document.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<p>The <code>Document</code> interface describes the common properties and methods for any kind of document. Depending on the document's type (e.g. <a href="/en-US/docs/HTML">HTML</a>, <a href="/en-US/docs/XML">XML</a>, SVG, …), a larger API is available: HTML documents, served with the <code>"text/html"</code> content type, also implement the {{DOMxRef("HTMLDocument")}} interface, whereas XML and SVG documents implement the {{DOMxRef("XMLDocument")}} interface.</p>
-
-<h2 id="Constructor">Constructor</h2>
-
-<dl>
- <dt>{{DOMxRef("Document.Document", "Document()")}}</dt>
- <dd>Creates a new <code>Document</code> object.</dd>
-</dl>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>This interface also inherits from the {{DOMxRef("Node")}} and {{DOMxRef("EventTarget")}} interfaces.</em></p>
-
-<dl>
- <dt>{{DOMxRef("Document.anchors")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of all of the anchors in the document.</dd>
- <dt>{{DOMxRef("Document.body")}}</dt>
- <dd>Returns the {{HTMLElement("body")}} or {{htmlelement("frameset")}} node of the current document.</dd>
- <dt>{{DOMxRef("Document.characterSet")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the character set being used by the document.</dd>
- <dt>{{DOMxRef("Document.compatMode")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Indicates whether the document is rendered in <em>quirks</em> or <em>strict</em> mode.</dd>
- <dt>{{DOMxRef("Document.contentType")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns the Content-Type from the MIME Header of the current document.</dd>
- <dt>{{DOMxRef("Document.doctype")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the Document Type Definition (DTD) of the current document.</dd>
- <dt>{{DOMxRef("Document.documentElement")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{DOMxRef("Element")}} that is a direct child of the document. For HTML documents, this is normally the {{DOMxRef("HTMLHtmlElement")}} object representing the document's {{HTMLElement("html")}} element.</dd>
- <dt>{{DOMxRef("Document.documentURI")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the document location as a string.</dd>
- <dt>{{DOMxRef("Document.embeds")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of the embedded {{HTMLElement('embed')}} elements within the current document.</dd>
- <dt>{{DOMxRef("Document.fonts")}}</dt>
- <dd>Returns the {{DOMxRef("FontFaceSet")}} interface of the current document.</dd>
- <dt>{{DOMxRef("Document.forms")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of the {{HTMLElement("form")}} elements within the current document.</dd>
- <dt>{{DOMxRef("Document.head")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{HTMLElement("head")}} element of the current document.</dd>
- <dt>{{DOMxRef("Document.hidden")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a Boolean value indicating if the page is considered hidden or not.</dd>
- <dt>{{DOMxRef("Document.images")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of the images in the current document.</dd>
- <dt>{{DOMxRef("Document.implementation")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the DOM implementation associated with the current document.</dd>
- <dt>{{DOMxRef("Document.lastStyleSheetSet")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the name of the style sheet set that was last enabled. Has the value <code>null</code> until the style sheet is changed by setting the value of {{DOMxRef("Document.selectedStyleSheetSet","selectedStyleSheetSet")}}.</dd>
- <dt>{{DOMxRef("Document.links")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of all the hyperlinks in the document.</dd>
- <dt>{{DOMxRef("Document.mozSyntheticDocument")}} {{Non-standard_Inline}}</dt>
- <dd>Returns a {{JSxRef("Boolean")}} that is <code>true</code> only if this document is synthetic, such as a standalone image, video, audio file, or the like.</dd>
- <dt>{{DOMxRef("Document.plugins")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of the available plugins.</dd>
- <dt>{{DOMxRef("Document.featurePolicy")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{DOMxRef("FeaturePolicy")}} interface which provides a simple API for introspecting the feature policies applied to a specific document.</dd>
- <dt>{{DOMxRef("Document.preferredStyleSheetSet")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the preferred style sheet set as specified by the page author.</dd>
- <dt>{{DOMxRef("Document.scripts")}}{{ReadOnlyInline}}</dt>
- <dd>Returns all the {{HTMLElement("script")}} elements on the document.</dd>
- <dt>{{DOMxRef("Document.scrollingElement")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the {{DOMxRef("Element")}} that scrolls the document.</dd>
- <dt>{{DOMxRef("Document.selectedStyleSheetSet")}}</dt>
- <dd>Returns which style sheet set is currently in use.</dd>
- <dt>{{DOMxRef("Document.styleSheetSets")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a list of the style sheet sets available on the document.</dd>
- <dt>{{DOMxRef("Document.timeline")}}{{ReadOnlyInline}}</dt>
- <dd>Returns timeline as a special instance of {{domxref("DocumentTimeline")}} that is automatically created on page load.</dd>
- <dt>{{DOMxRef("Document.undoManager")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
- <dd>…</dd>
- <dt>{{DOMxRef("Document.visibilityState")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a <code>string</code> denoting the visibility state of the document. Possible values are <code>visible</code>, <code>hidden</code>, <code>prerender</code>, and <code>unloaded</code>.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{DOMxRef("ParentNode")}} interface:</p>
-
-<p>{{page("/en-US/docs/Web/API/ParentNode","Properties")}}</p>
-
-<h3 id="Extensions_for_HTMLDocument">Extensions for HTMLDocument</h3>
-
-<p><em>The <code>Document</code> interface for HTML documents inherits from the {{DOMxRef("HTMLDocument")}} interface or, since HTML5, is extended for such documents.</em></p>
-
-<dl>
- <dt>{{DOMxRef("Document.cookie")}}</dt>
- <dd>Returns a semicolon-separated list of the cookies for that document or sets a single cookie.</dd>
- <dt>{{DOMxRef("Document.defaultView")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the window object.</dd>
- <dt>{{DOMxRef("Document.designMode")}}</dt>
- <dd>Gets/sets the ability to edit the whole document.</dd>
- <dt>{{DOMxRef("Document.dir")}}{{ReadOnlyInline}}</dt>
- <dd>Gets/sets directionality (rtl/ltr) of the document.</dd>
- <dt>{{DOMxRef("Document.domain")}}</dt>
- <dd>Gets/sets the domain of the current document.</dd>
- <dt>{{DOMxRef("Document.lastModified")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the date on which the document was last modified.</dd>
- <dt>{{DOMxRef("Document.location")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the URI of the current document.</dd>
- <dt>{{DOMxRef("Document.readyState")}}{{ReadOnlyInline}}</dt>
- <dd>Returns loading status of the document.</dd>
- <dt>{{DOMxRef("Document.referrer")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the URI of the page that linked to this page.</dd>
- <dt>{{DOMxRef("Document.title")}}</dt>
- <dd>Sets or gets the title of the current document.</dd>
- <dt>{{DOMxRef("Document.URL")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the document location as a string.</dd>
-</dl>
-
-<h3 id="Properties_included_from_DocumentOrShadowRoot">Properties included from DocumentOrShadowRoot</h3>
-
-<p><em>The <code>Document</code> interface includes the following properties defined on the {{DOMxRef("DocumentOrShadowRoot")}} mixin. Note that this is currently only implemented by Chrome; other browsers still implement them directly on the {{DOMxRef("Document")}} interface.</em></p>
-
-<dl>
- <dt>{{DOMxRef("DocumentOrShadowRoot.activeElement")}}{{ReadOnlyInline}}</dt>
- <dd>Returns the {{DOMxRef('Element')}} within the shadow tree that has focus.</dd>
- <dt>{{DOMxRef("Document.fullscreenElement")}}{{ReadOnlyInline}}</dt>
- <dd>The element that's currently in full screen mode for this document.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns the element set as the target for mouse events while the pointer is locked. <code>null</code> if lock is pending, pointer is unlocked, or if the target is in another document.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.styleSheets")}}{{ReadOnlyInline}}</dt>
- <dd>Returns a {{DOMxRef('StyleSheetList')}} of {{DOMxRef('CSSStyleSheet')}} objects for stylesheets explicitly linked into, or embedded in a document.</dd>
-</dl>
-
-<h3 id="Event_handlers">Event handlers</h3>
-
-<dl>
- <dt>{{DOMxRef("Document.onafterscriptexecute")}} {{Non-standard_Inline}}</dt>
- <dd>Represents the event handling code for the {{event("afterscriptexecute")}} event.</dd>
- <dt>{{DOMxRef("Document.onbeforescriptexecute")}} {{Non-standard_Inline}}</dt>
- <dd>Represents the event handling code for the {{event("beforescriptexecute")}} event.</dd>
- <dt>{{DOMxRef("Document.oncopy")}} {{Non-standard_Inline}}</dt>
- <dd>Represents the event handling code for the {{event("copy")}} event.</dd>
- <dt>{{DOMxRef("Document.oncut")}} {{Non-standard_Inline}}</dt>
- <dd>Represents the event handling code for the {{event("cut")}} event.</dd>
- <dt>{{DOMxRef("Document.onfullscreenchange")}}</dt>
- <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenchange")}} event is raised.</dd>
- <dt>{{DOMxRef("Document.onfullscreenerror")}}</dt>
- <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("fullscreenerror")}} event is raised.</dd>
- <dt>{{DOMxRef("Document.onpaste")}} {{Non-standard_Inline}}</dt>
- <dd>Represents the event handling code for the {{event("paste")}} event.</dd>
- <dt>{{DOMxRef("Document.onreadystatechange")}}</dt>
- <dd>Represents the event handling code for the {{event("readystatechange")}} event.</dd>
- <dt>{{DOMxRef("Document.onselectionchange")}} {{Experimental_Inline}}</dt>
- <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd>
- <dt>{{DOMxRef("Document.onvisibilitychange")}}</dt>
- <dd>Is an {{DOMxRef("EventHandler")}} representing the code to be called when the {{event("visibilitychange")}} event is raised.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{DOMxRef("GlobalEventHandlers")}} interface:</p>
-
-<p>{{Page("/en-US/docs/Web/API/GlobalEventHandlers", "Properties")}}</p>
-
-<h3 id="Deprecated_properties">Deprecated properties</h3>
-
-<dl>
- <dt>{{DOMxRef("Document.alinkColor")}} {{Deprecated_Inline}}</dt>
- <dd>Returns or sets the color of active links in the document body.</dd>
- <dt>{{DOMxRef("Document.all")}} {{Deprecated_Inline}} {{Non-standard_Inline}}</dt>
- <dd>Provides access to all elements in the document — it returns an {{DOMxRef('HTMLAllCollection')}} rooted at the document node. This is a legacy, non-standard property and should not be used.</dd>
- <dt>{{DOMxRef("Document.applets")}} {{Deprecated_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Returns an ordered list of the applets within a document.</dd>
- <dt>{{DOMxRef("Document.bgColor")}} {{Deprecated_Inline}}</dt>
- <dd>Gets/sets the background color of the current document.</dd>
- <dt>{{DOMxRef("Document.charset")}} {{Deprecated_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Alias of {{DOMxRef("Document.characterSet")}}. Use this property instead.</dd>
- <dt>{{DOMxRef("Document.domConfig")}} {{Deprecated_Inline}}</dt>
- <dd>Should return a {{DOMxRef("DOMConfiguration")}} object.</dd>
- <dt>{{DOMxRef("Document.fgColor")}} {{Deprecated_Inline}}</dt>
- <dd>Gets/sets the foreground color, or text color, of the current document.</dd>
- <dt>{{DOMxRef("Document.fullscreen")}} {{Obsolete_Inline}}</dt>
- <dd><code>true</code> when the document is in {{DOMxRef("Using_full-screen_mode","full-screen mode")}}.</dd>
- <dt>{{DOMxRef("Document.height")}} {{Non-standard_Inline}} {{Obsolete_Inline}}</dt>
- <dd>Gets/sets the height of the current document.</dd>
- <dt>{{DOMxRef("Document.inputEncoding")}} {{Deprecated_Inline}}{{ReadOnlyInline}}</dt>
- <dd>Alias of {{DOMxRef("Document.characterSet")}}. Use this property instead.</dd>
- <dt>{{DOMxRef("Document.linkColor")}} {{Deprecated_Inline}}</dt>
- <dd>Gets/sets the color of hyperlinks in the document.</dd>
- <dt>{{DOMxRef("Document.vlinkColor")}} {{Deprecated_Inline}}</dt>
- <dd>Gets/sets the color of visited hyperlinks.</dd>
- <dt>{{DOMxRef("Document.width")}} {{Non-standard_Inline}} {{Obsolete_Inline}}</dt>
- <dd>Returns the width of the current document.</dd>
- <dt>{{DOMxRef("Document.xmlEncoding")}} {{Deprecated_Inline}}</dt>
- <dd>Returns the encoding as determined by the XML declaration.</dd>
- <dt>{{DOMxRef("Document.xmlStandalone")}} {{Obsolete_Inline("Gecko10")}}</dt>
- <dd>Returns <code>true</code> if the XML declaration specifies the document to be standalone (<em>e.g.,</em> An external part of the DTD affects the document's content), else <code>false</code>.</dd>
- <dt>{{DOMxRef("Document.xmlVersion")}} {{Obsolete_Inline("Gecko10")}}</dt>
- <dd>Returns the version number as specified in the XML declaration or <code>"1.0"</code> if the declaration is absent.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>This interface also inherits from the {{DOMxRef("Node")}} and {{DOMxRef("EventTarget")}} interfaces.</em></p>
-
-<dl>
- <dt>{{DOMxRef("Document.adoptNode()")}}</dt>
- <dd>Adopt node from an external document.</dd>
- <dt>{{DOMxRef("Document.captureEvents()")}} {{Deprecated_Inline}}</dt>
- <dd>See {{DOMxRef("Window.captureEvents")}}.</dd>
- <dt>{{DOMxRef("Document.caretRangeFromPoint()")}} {{Non-standard_Inline}}</dt>
- <dd>Gets a {{DOMxRef("Range")}} object for the document fragment under the specified coordinates.</dd>
- <dt>{{DOMxRef("Document.createAttribute()")}}</dt>
- <dd>Creates a new {{DOMxRef("Attr")}} object and returns it.</dd>
- <dt>{{DOMxRef("Document.createAttributeNS()")}}</dt>
- <dd>Creates a new attribute node in a given namespace and returns it.</dd>
- <dt>{{DOMxRef("Document.createCDATASection()")}}</dt>
- <dd>Creates a new CDATA node and returns it.</dd>
- <dt>{{DOMxRef("Document.createComment()")}}</dt>
- <dd>Creates a new comment node and returns it.</dd>
- <dt>{{DOMxRef("Document.createDocumentFragment()")}}</dt>
- <dd>Creates a new document fragment.</dd>
- <dt>{{DOMxRef("Document.createElement()")}}</dt>
- <dd>Creates a new element with the given tag name.</dd>
- <dt>{{DOMxRef("Document.createElementNS()")}}</dt>
- <dd>Creates a new element with the given tag name and namespace URI.</dd>
- <dt>{{DOMxRef("Document.createEntityReference()")}} {{Obsolete_Inline}}</dt>
- <dd>Creates a new entity reference object and returns it.</dd>
- <dt>{{DOMxRef("Document.createEvent()")}}</dt>
- <dd>Creates an event object.</dd>
- <dt>{{DOMxRef("Document.createNodeIterator()")}}</dt>
- <dd>Creates a {{DOMxRef("NodeIterator")}} object.</dd>
- <dt>{{DOMxRef("Document.createProcessingInstruction()")}}</dt>
- <dd>Creates a new {{DOMxRef("ProcessingInstruction")}} object.</dd>
- <dt>{{DOMxRef("Document.createRange()")}}</dt>
- <dd>Creates a {{DOMxRef("Range")}} object.</dd>
- <dt>{{DOMxRef("Document.createTextNode()")}}</dt>
- <dd>Creates a text node.</dd>
- <dt>{{DOMxRef("Document.createTouch()")}} {{Deprecated_Inline}}</dt>
- <dd>Creates a {{DOMxRef("Touch")}} object.</dd>
- <dt>{{DOMxRef("Document.createTouchList()")}}</dt>
- <dd>Creates a {{DOMxRef("TouchList")}} object.</dd>
- <dt>{{DOMxRef("Document.createTreeWalker()")}}</dt>
- <dd>Creates a {{DOMxRef("TreeWalker")}} object.</dd>
- <dt>{{DOMxRef("Document.enableStyleSheetsForSet()")}}</dt>
- <dd>Enables the style sheets for the specified style sheet set.</dd>
- <dt>{{DOMxRef("Document.exitPointerLock()")}} {{Experimental_Inline}}</dt>
- <dd>Release the pointer lock.</dd>
- <dt>{{DOMxRef("Document.getAnimations()")}} {{Experimental_Inline}}</dt>
- <dd>Returns an array of all {{DOMxRef("Animation")}} objects currently in effect, whose target elements are descendants of the <code>document</code>.</dd>
- <dt>{{DOMxRef("Document.getElementsByClassName()")}}</dt>
- <dd>Returns a list of elements with the given class name.</dd>
- <dt>{{DOMxRef("Document.getElementsByTagName()")}}</dt>
- <dd>Returns a list of elements with the given tag name.</dd>
- <dt>{{DOMxRef("Document.getElementsByTagNameNS()")}}</dt>
- <dd>Returns a list of elements with the given tag name and namespace.</dd>
- <dt>{{DOMxRef("Document.hasStorageAccess()")}}</dt>
- <dd>Returns a {{jsxref("Promise")}} that resolves with a boolean value indicating whether the document has access to its first-party storage.</dd>
- <dt>{{DOMxRef("Document.importNode()")}}</dt>
- <dd>Returns a clone of a node from an external document.</dd>
- <dt>{{DOMxRef("Document.normalizeDocument()")}} {{Obsolete_Inline}}</dt>
- <dd>Replaces entities, normalizes text nodes, etc.</dd>
- <dt>{{DOMxRef("Document.releaseCapture()")}} {{Non-standard_Inline}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Releases the current mouse capture if it's on an element in this document.</dd>
- <dt>{{DOMxRef("Document.releaseEvents()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
- <dd>See {{DOMxRef("Window.releaseEvents()")}}.</dd>
- <dt>{{DOMxRef("Document.requestStorageAccess()")}}</dt>
- <dd>Returns a {{jsxref("Promise")}} that resolves if the access to first-party storage was granted, and rejects if access was denied.</dd>
- <dt>{{DOMxRef("Document.routeEvent()")}} {{Non-standard_Inline}} {{Obsolete_Inline("Gecko24")}}</dt>
- <dd>See {{DOMxRef("Window.routeEvent()")}}.</dd>
- <dt>{{DOMxRef("Document.mozSetImageElement()")}} {{Non-standard_Inline}}</dt>
- <dd>Allows you to change the element being used as the background image for a specified element ID.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{DOMxRef("ParentNode")}} interface:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.getElementById","document.getElementById(String id)")}}</dt>
- <dd>Returns an object reference to the identified element.</dd>
- <dt>{{DOMxRef("Document.querySelector()")}}</dt>
- <dd>Returns the first Element node within the document, in document order, that matches the specified selectors.</dd>
- <dt>{{DOMxRef("Document.querySelectorAll()")}}</dt>
- <dd>Returns a list of all the Element nodes within the document that match the specified selectors.</dd>
-</dl>
-
-<p>The <code>Document</code> interface is extended with the {{DOMxRef("XPathEvaluator")}} interface:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.createExpression()")}}</dt>
- <dd>Compiles an <code><a href="/en-US/docs/XPathExpression" title="XPathExpression">XPathExpression</a></code> which can then be used for (repeated) evaluations.</dd>
- <dt>{{DOMxRef("Document.createNSResolver()")}}</dt>
- <dd>Creates an {{DOMxRef("XPathNSResolver")}} object.</dd>
- <dt>{{DOMxRef("Document.evaluate()")}}</dt>
- <dd>Evaluates an XPath expression.</dd>
-</dl>
-
-<h3 id="Extension_for_HTML_documents">Extension for HTML documents</h3>
-
-<p>The <code>Document</code> interface for HTML documents inherit from the {{DOMxRef("HTMLDocument")}} interface or, since HTML5, is extended for such documents:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.clear()")}} {{Non-standard_Inline}} {{Deprecated_Inline}}</dt>
- <dd>In majority of modern browsers, including recent versions of Firefox and Internet Explorer, this method does nothing.</dd>
- <dt>{{DOMxRef("Document.close()")}}</dt>
- <dd>Closes a document stream for writing.</dd>
- <dt>{{DOMxRef("Document.execCommand()")}}</dt>
- <dd>On an editable document, executes a formating command.</dd>
- <dt>{{DOMxRef("Document.getElementsByName()")}}</dt>
- <dd>Returns a list of elements with the given name.</dd>
- <dt>{{DOMxRef("Document.hasFocus()")}}</dt>
- <dd>Returns <code>true</code> if the focus is currently located anywhere inside the specified document.</dd>
- <dt>{{DOMxRef("Document.open()")}}</dt>
- <dd>Opens a document stream for writing.</dd>
- <dt>{{DOMxRef("Document.queryCommandEnabled()")}}</dt>
- <dd>Returns true if the formating command can be executed on the current range.</dd>
- <dt>{{DOMxRef("Document.queryCommandIndeterm()")}}</dt>
- <dd>Returns true if the formating command is in an indeterminate state on the current range.</dd>
- <dt>{{DOMxRef("Document.queryCommandState()")}}</dt>
- <dd>Returns true if the formating command has been executed on the current range.</dd>
- <dt>{{DOMxRef("Document.queryCommandSupported()")}}</dt>
- <dd>Returns true if the formating command is supported on the current range.</dd>
- <dt>{{DOMxRef("Document.queryCommandValue()")}}</dt>
- <dd>Returns the current value of the current range for a formating command.</dd>
- <dt>{{DOMxRef("Document.write()")}}</dt>
- <dd>Writes text in a document.</dd>
- <dt>{{DOMxRef("Document.writeln()")}}</dt>
- <dd>Writes a line of text in a document.</dd>
-</dl>
-
-<h3 id="Methods_included_from_DocumentOrShadowRoot">Methods included from DocumentOrShadowRoot</h3>
-
-<p><em>The <code>Document</code> interface includes the following methods defined on the {{DOMxRef("DocumentOrShadowRoot")}} mixin. Note that this is currently only implemented by Chrome; other browsers still implement them on the {{DOMxRef("Document")}} interface.</em></p>
-
-<dl>
- <dt>{{DOMxRef("DocumentOrShadowRoot.getSelection()")}}</dt>
- <dd>Returns a {{DOMxRef('Selection')}} object representing the range of text selected by the user, or the current position of the caret.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.elementFromPoint()")}}</dt>
- <dd>Returns the topmost element at the specified coordinates.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.elementsFromPoint()")}}</dt>
- <dd>Returns an array of all elements at the specified coordinates.</dd>
- <dt>{{DOMxRef("DocumentOrShadowRoot.caretPositionFromPoint()")}}</dt>
- <dd>Returns a {{DOMxRef('CaretPosition')}} object containing the DOM node containing the caret, and caret's character offset within that node.</dd>
-</dl>
-
-<h2 id="Events">Events</h2>
-
-<p>Listen to these events using <code>addEventListener()</code> or by assigning an event listener to the <code>on<em>eventname</em></code> property of this interface.</p>
-
-<dl>
- <dt>{{DOMxRef("Document/scroll_event", "scroll")}}</dt>
- <dd>Fired when the document view or an element has been scrolled.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers.onscroll", "onscroll")}} property.</dd>
- <dt>{{DOMxRef("Document/visibilitychange_event", "visibilitychange")}}</dt>
- <dd>Fired when the content of a tab has become visible or has been hidden.<br>
- Also available via the {{DOMxRef("Document.onvisibilitychange", "onvisibilitychange")}} property.</dd>
- <dt>{{DOMxRef("Document/wheel_event","wheel")}}</dt>
- <dd>Fired when the user rotates a wheel button on a pointing device (typically a mouse).<br>
- Also available via the {{DOMxRef("GlobalEventHandlers.onwheel", "onwheel")}} property.</dd>
-</dl>
-
-<h3 id="Animation_events">Animation events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/animationcancel_event", "animationcancel")}}</dt>
- <dd>Fired when an animation unexpectedly aborts.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onanimationcancel", "onanimationcancel")}} property.</dd>
- <dt>{{DOMxRef("Document/animationend_event", "animationend")}}</dt>
- <dd>Fired when an animation has completed normally.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onanimationend", "onanimationend")}} property.</dd>
- <dt>{{DOMxRef("Document/animationiteration_event", "animationiteration")}}</dt>
- <dd>Fired when an animation iteration has completed.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onanimationiteration", "onanimationiteration")}} property.</dd>
- <dt>{{DOMxRef("Document/animationstart_event", "animationstart")}}</dt>
- <dd>Fired when an animation starts.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onanimationstart", "onanimationstart")}} property.</dd>
-</dl>
-
-<h3 id="Clipboard_events">Clipboard events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/copy_event", "copy")}}</dt>
- <dd>Fired when the user initiates a copy action through the browser's user interface.<br>
- Also available via the {{DOMxRef("HTMLElement/oncopy", "oncopy")}} property.</dd>
- <dt>{{DOMxRef("Document/cut_event", "cut")}}</dt>
- <dd>Fired when the user initiates a cut action through the browser's user interface.<br>
- Also available via the {{DOMxRef("HTMLElement/oncut", "oncut")}} property.</dd>
- <dt>{{DOMxRef("Document/paste_event", "paste")}}</dt>
- <dd>Fired when the user initiates a paste action through the browser's user interface.<br>
- Also available via the {{DOMxRef("HTMLElement/onpaste", "onpaste")}} property.</dd>
-</dl>
-
-<h3 id="Drag_drop_events">Drag &amp; drop events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/drag_event", "drag")}}</dt>
- <dd>Fired every few hundred milliseconds as an element or text selection is being dragged by the user.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondrag", "ondrag")}} property.</dd>
- <dt>{{DOMxRef("Document/dragend_event", "dragend")}}</dt>
- <dd>Fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key).<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondragend", "ondragend")}} property.</dd>
- <dt>{{DOMxRef("Document/dragenter_event", "dragenter")}}</dt>
- <dd>Fired when a dragged element or text selection enters a valid drop target.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondragenter", "ondragenter")}} property.</dd>
- <dt>{{DOMxRef("Document/dragexit_event", "dragexit")}}</dt>
- <dd>Fired when an element is no longer the drag operation's immediate selection target.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondragexit", "ondragexit")}} property.</dd>
- <dt>{{DOMxRef("Document/dragleave_event", "dragleave")}}</dt>
- <dd>Fired when a dragged element or text selection leaves a valid drop target.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondragleave", "ondragleave")}} property.</dd>
- <dt>{{DOMxRef("Document/dragover_event", "dragover")}}</dt>
- <dd>Fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondragover", "ondragover")}} property.</dd>
- <dt>{{DOMxRef("Document/dragstart_event", "dragstart")}}</dt>
- <dd>Fired when the user starts dragging an element or text selection.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondragstart", "ondragstart")}} property.</dd>
- <dt>{{DOMxRef("Document/drop_event", "drop")}}</dt>
- <dd>Fired when an element or text selection is dropped on a valid drop target.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ondrop", "ondrop")}} property.</dd>
-</dl>
-
-<h3 id="Fullscreen_events">Fullscreen events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/fullscreenchange_event", "fullscreenchange")}}</dt>
- <dd>Fired when the <code>Document</code> transitions into or out of <a href="/en-US/docs/Web/API/Fullscreen_API/Guide">full-screen</a> mode.<br>
- Also available via the {{DOMxRef("Document.onfullscreenchange", "onfullscreenchange")}} property.</dd>
- <dt><code><a href="/en-US/docs/Web/Events/fullscreenerror">fullscreenerror</a></code></dt>
- <dd>Fired if an error occurs while attempting to switch into or out of <a href="/en-US/docs/Web/API/Fullscreen_API/Guide">full-screen</a> mode.<br>
- Also available via the  {{DOMxRef("Document.onfullscreenerror", "onfullscreenerror")}} property.</dd>
- <dt>
- <h3 id="Keyboard_events">Keyboard events</h3>
- </dt>
- <dt>{{DOMxRef("Document/keydown_event", "keydown")}}</dt>
- <dd>Fired when a key is pressed.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onkeydown", "onkeydown")}} property.</dd>
- <dt>{{DOMxRef("Document/keypress_event", "keypress")}}</dt>
- <dd>Fired when a key that produces a character value is pressed down. {{Deprecated_Inline}}<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onkeypress", "onkeypress")}} property.</dd>
- <dt>{{DOMxRef("Document/keyup_event", "keyup")}}</dt>
- <dd>Fired when a key is released.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onkeyup", "onkeyup")}} property.</dd>
-</dl>
-
-<h3 id="Load_unload_events">Load &amp; unload events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/DOMContentLoaded_event", "DOMContentLoaded")}}</dt>
- <dd>Fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.</dd>
- <dt>{{DOMxRef("Document/readystatechange_event", "readystatechange")}}</dt>
- <dd>Fired when the {{DOMxRef("Document/readyState", "readyState")}} attribute of a document has changed.<br>
- Also available via the <code>onreadystatechange</code> property.</dd>
-</dl>
-
-<h3 id="Pointer_events">Pointer events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/gotpointercapture_event", "gotpointercapture")}}</dt>
- <dd>Fired when when an element captures a pointer using <code><a href="/en-US/docs/Web/API/Element/setPointerCapture">setPointerCapture()</a></code>.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ongotpointercapture", "ongotpointercapture")}} property.</dd>
- <dt>{{DOMxRef("Document/lostpointercapture_event", "lostpointercapture")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/Web/API/Pointer_events#Pointer_capture">captured pointer</a> is released.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onlostpointercapture", "onlostpointercapture")}} property.</dd>
- <dt>{{DOMxRef("Document/pointercancel_event", "pointercancel")}}</dt>
- <dd>Fired when a pointer event is canceled.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointercancel", "onpointercancel")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerdown_event", "pointerdown")}}</dt>
- <dd>Fired when a pointer becomes active.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerdown", "onpointerdown")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerenter_event", "pointerenter")}}</dt>
- <dd>Fired when a pointer is moved into the hit test boundaries of an element or one of its descendants.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerenter", "onpointerenter")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerleave_event", "pointerleave")}}</dt>
- <dd>Fired when a pointer is moved out of the hit test boundaries of an element.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerleave", "onpointerleave")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerlockchange_event", "pointerlockchange")}}</dt>
- <dd>Fired when the pointer is locked/unlocked.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerlockchange", "onpointerlockchange")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerlockerror_event", "pointerlockerror")}}</dt>
- <dd>Fired when locking the pointer failed.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerlockerror", "onpointerlockerror")}} property.</dd>
- <dt>{{DOMxRef("Document/pointermove_event", "pointermove")}}</dt>
- <dd>Fired when a pointer changes coordinates.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointermove", "onpointermove")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerout_event", "pointerout")}}</dt>
- <dd>Fired when a pointer is moved out of the <em>hit test</em> boundaries of an element (among other reasons).<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerout", "onpointerout")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerover_event", "pointerover")}}</dt>
- <dd>Fired when a pointer is moved into an element's hit test boundaries.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerover", "onpointerover")}} property.</dd>
- <dt>{{DOMxRef("Document/pointerup_event", "pointerup")}}</dt>
- <dd>Fired when a pointer is no longer active.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onpointerup", "onpointerup")}} property.</dd>
-</dl>
-
-<h3 id="Selection_events">Selection events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/selectionchange_event", "selectionchange")}}</dt>
- <dd>Fired when the current text selection on a document is changed.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onselectionchange", "onselectionchange")}} property.</dd>
- <dt>{{DOMxRef("Document/selectstart_event", "selectstart")}}</dt>
- <dd>Fired when the user begins a new selection.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/onselectstart", "onselectstart")}} property.</dd>
-</dl>
-
-<h3 id="Touch_events">Touch events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/touchcancel_event", "touchcancel")}}</dt>
- <dd>Fired when one or more touch points have been disrupted in an implementation-specific manner (for example, too many touch points are created).<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontouchcancel", "ontouchcancel")}} property.</dd>
- <dt>{{DOMxRef("Document/touchend_event", "touchend")}}</dt>
- <dd>Fired when one or more touch points are removed from the touch surface.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontouchend", "ontouchend")}} property</dd>
- <dt>{{DOMxRef("Document/touchmove_event", "touchmove")}}</dt>
- <dd>Fired when one or more touch points are moved along the touch surface.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontouchmove", "ontouchmove")}} property</dd>
- <dt>{{DOMxRef("Document/touchstart_event", "touchstart")}}</dt>
- <dd>Fired when one or more touch points are placed on the touch surface.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontouchstart", "ontouchstart")}} property</dd>
-</dl>
-
-<h3 id="Transition_events">Transition events</h3>
-
-<dl>
- <dt>{{DOMxRef("Document/transitioncancel_event", "transitioncancel")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> is canceled.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontransitioncancel", "ontransitioncancel")}} property.</dd>
- <dt>{{DOMxRef("Document/transitionend_event", "transitionend")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has completed.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontransitionend", "ontransitionend")}} property.</dd>
- <dt>{{DOMxRef("Document/transitionrun_event", "transitionrun")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> is first created.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontransitionrun", "ontransitionrun")}} property.</dd>
- <dt>{{DOMxRef("Document/transitionstart_event", "transitionstart")}}</dt>
- <dd>Fired when a <a href="/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has actually started.<br>
- Also available via the {{DOMxRef("GlobalEventHandlers/ontransitionstart", "ontransitionstart")}} property.</dd>
-</dl>
-
-<h2 id="Non-standard_extensions_Non-standard_Inline">Non-standard extensions {{Non-standard_Inline}}</h2>
-
-<div>{{non-standard_header}}</div>
-
-<h3 id="Firefox_notes">Firefox notes</h3>
-
-<p>Mozilla defines a set of non-standard properties made only for XUL content:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.currentScript")}} {{Non-standard_Inline}}</dt>
- <dd>Returns the {{HTMLElement("script")}} element that is currently executing.</dd>
- <dt>{{DOMxRef("Document.documentURIObject")}}</dt>
- <dd>(<strong>Mozilla add-ons only!</strong>) Returns the {{Interface("nsIURI")}} object representing the URI of the document. This property only has special meaning in privileged JavaScript code (with UniversalXPConnect privileges).</dd>
- <dt>{{DOMxRef("Document.popupNode")}}</dt>
- <dd>Returns the node upon which a popup was invoked.</dd>
- <dt>{{DOMxRef("Document.tooltipNode")}}</dt>
- <dd>Returns the node which is the target of the current tooltip.</dd>
-</dl>
-
-<p>Mozilla also define some non-standard methods:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.execCommandShowHelp()")}}{{Obsolete_Inline("Gecko14")}}</dt>
- <dd>This method never did anything and always threw an exception, so it was removed in Gecko 14.0 {{geckoRelease("14.0")}}.</dd>
- <dt>{{DOMxRef("Document.getBoxObjectFor()")}} {{Obsolete_Inline}}</dt>
- <dd>Use the {{DOMxRef("Element.getBoundingClientRect()")}} method instead.</dd>
- <dt>{{DOMxRef("Document.loadOverlay()")}}{{Obsolete_Inline("Gecko61")}}</dt>
- <dd>Loads a <a href="/en-US/docs/XUL_Overlays" title="XUL_Overlays">XUL overlay</a> dynamically. This only works in XUL documents.</dd>
- <dt>{{DOMxRef("Document.queryCommandText()")}}{{Obsolete_Inline("Gecko14")}}</dt>
- <dd>This method never did anything but throw an exception, and was removed in Gecko 14 {{GeckoRelease("14")}}.</dd>
-</dl>
-
-<h3 id="Internet_Explorer_notes">Internet Explorer notes</h3>
-
-<p>Microsoft defines some non-standard properties:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.fileSize")}}* {{Non-standard_Inline}} {{Obsolete_Inline}}</dt>
- <dd>Returns size in bytes of the document. Starting with Internet Explorer 11, that property is no longer supported. See <a href="http://msdn.microsoft.com/en-us/library/ms533752%28v=VS.85%29.aspx">MSDN</a>.</dd>
-</dl>
-
-<p>Internet Explorer does not support all methods from the <code>Node</code> interface in the <code>Document</code> interface:</p>
-
-<dl>
- <dt>{{DOMxRef("Document.contains")}}</dt>
- <dd>As a work-around, <code>document.body.contains()</code> can be used.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("DOM WHATWG", "#interface-document", "Document")}}</td>
- <td>{{Spec2("DOM WHATWG")}}</td>
- <td>Intend to supersede DOM 3</td>
- </tr>
- <tr>
- <td>{{SpecName("HTML WHATWG", "dom.html#the-document-object", "Document")}}</td>
- <td>{{Spec2("HTML WHATWG")}}</td>
- <td>Turn the {{DOMxRef("HTMLDocument")}} interface into a <code>Document</code> extension.</td>
- </tr>
- <tr>
- <td>{{SpecName("CSSOM View", "#extensions-to-the-document-interface", "Document")}}</td>
- <td>{{Spec2("CSSOM View")}}</td>
- <td>Extend the <code>Document</code> interface</td>
- </tr>
- <tr>
- <td>{{SpecName("Pointer Lock", "#extensions-to-the-document-interface", "Document")}}</td>
- <td>{{Spec2("Pointer Lock")}}</td>
- <td>Extend the <code>Document</code> interface</td>
- </tr>
- <tr>
- <td>{{SpecName("Page Visibility API", "#extensions-to-the-document-interface", "Document")}}</td>
- <td>{{Spec2("Page Visibility API")}}</td>
- <td>Extend the <code>Document</code> interface with the <code>visibilityState</code> and <code>hidden</code> attributes and the <code>onvisibilitychange</code> event listener.</td>
- </tr>
- <tr>
- <td>{{SpecName("Selection API", "#extensions-to-document-interface", "Document")}}</td>
- <td>{{Spec2("Selection API")}}</td>
- <td>Adds <code>getSelection()</code>, <code>onselectstart</code> and <code>onselectionchange</code>.</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM4", "#interface-document", "Document")}}</td>
- <td>{{Spec2("DOM4")}}</td>
- <td>Supersede DOM 3</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM3 Core", "#i-Document", "Document")}}</td>
- <td>{{Spec2("DOM3 Core")}}</td>
- <td>Supersede DOM 2</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM3 XPath", "xpath.html#XPathEvaluator", "XPathEvaluator")}}</td>
- <td>{{Spec2("DOM3 XPath")}}</td>
- <td>Define the {{DOMxRef("XPathEvaluator")}} interface which extend document.</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM2 Core", "#i-Document", "Document")}}</td>
- <td>{{Spec2("DOM2 Core")}}</td>
- <td>Supersede DOM 1</td>
- </tr>
- <tr>
- <td>{{SpecName("DOM1", "#i-Document", "Document")}}</td>
- <td>{{Spec2("DOM1")}}</td>
- <td>Initial definition for the interface</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Document")}}</p>
diff --git a/files/hu/web/api/document_object_model/index.html b/files/hu/web/api/document_object_model/index.html
deleted file mode 100644
index 1ea0407201..0000000000
--- a/files/hu/web/api/document_object_model/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: Bevezetés a dokumentumobjektum-modellbe
-slug: Web/API/Document_Object_Model
-tags:
- - DOM
- - minden_kategória
-translation_of: Web/API/Document_Object_Model
-translation_of_original: Web/Guide/API/DOM
-original_slug: Bevezetés_a_dokumentumobjektum-modellbe
----
-<h3 id="Mi_a_DOM.3F" name="Mi_a_DOM.3F">Mi a DOM?</h3>
-<p>A <a href="hu/DOM">Dokumentumobjektum-modell</a> (DOM) egy API <a href="hu/HTML">HTML</a> és <a href="hu/XML">XML</a> dokumentumokhoz. A dokumentum szerkezetét modellezi és lehetővé teszi annak tartalmi és vizulális változtatását. Lényegében összeköttetést képez a weblapok és a script- vagy programozási nyelvek között.</p>
-<p>Minden tulajdonságot, metódust és eseményt, ami a webfejlesztő számára rendelkezésre áll a weboldalak szerkesztése és változtatása során, <a href="hu/Gecko_DOM_referencia">objektumokba</a> rendszerez. (pl. a document objektum jelöli a dokumentumot, a table objektum jelöli a HTML táblázatokat, stb.) Ezek az objektumok hozzáférhetőek a script-nyelvek számára az újabb böngészőkben.</p>
-<p>A DOM-ot leggyakrabban JavaScript-tel együtt használják. Azaz a kód JavaScript-ben van írva, de a DOM-ot használja a weboldalhoz és elemeihez való hozzáférés során.</p>
-<p>A DOM-ot azonban úgy tervezték hogy független legyen minden programozási nyelvtől, ezért a dokumentum szerkezeti modellje egyetlen, önálló és konzisztens API-ból érhető el. Bár a továbbiakban a JavaScriptre fogunk összpontosítani, a DOM-ot tkp. <a class="external" href="http://www.w3.org/DOM/Bindings">bármilyen nyelvből</a> elérhetjük.</p>
-<p>A <a class="external" href="http://www.w3.org/">World Wide Web Consortium</a> (W3C) meghatározta a <a class="external" href="http://www.w3.org/DOM/">standard DOM</a>-ot, amit W3C DOM-nak neveznek. Ma már a legfontosabb böngészők ezt támogatják, ezzel lehetővé teszik browserfüggetlen alkalmazások létrehozását.</p>
-<h3 id="Mi.C3.A9rt_fontos_a__DOM-t.C3.A1mogat.C3.A1s_a__Mozilla-ban.3F" name="Mi.C3.A9rt_fontos_a__DOM-t.C3.A1mogat.C3.A1s_a__Mozilla-ban.3F">Miért fontos a DOM-támogatás a Mozilla-ban?</h3>
-<p>A "dinamikus HTML" (<a href="hu/DHTML">DHTML</a>) fogalmat szokták használni a HTML, CSS és a scriptek kombinációjára, amivel pl. animációt helyezhetünk el weboldalunkon. A W3C DOM munkacsoportjában keményen dolgoznak azon, hogy nyelvsemleges megoldásokat tudjanak szabványosítani (lásd még <a class="external" href="http://www.w3.org/DOM/faq.html">W3C FAQ</a>). Mivel a Mozillát webalkalmazás-platformnak ("Web Application Platform") tervezték, a DOM támogatása az egyik leggyakrabban felmerülő követelmény és a elengedhetetlen megfelelni neki, ha a Mozilla életképes alternatíva kíván maradni a többi böngésző mellett.</p>
-<p>Talán még ennél is fontosabb, hogy a Mozilla (valamint a Firefox és a Thunderbird) felhasználói felülete XUL (XML User interface Language - XML felhasználói felületi nyelv) használatára épül. A Mozilla felhasználói tehát a DOM segítségével dinamikusan változtatni tudják a saját felhasználói felületüket is.</p>
-<p>{{ languages( { "en": "en/About_the_Document_Object_Model", "es": "es/Acerca_del_Modelo_de_Objetos_del_Documento", "fr": "fr/\u00c0_propos_du_Document_Object_Model", "ja": "ja/About_the_Document_Object_Model", "ko": "ko/About_the_Document_Object_Model", "pl": "pl/O_modelu_obiektowym_dokumentu", "zh-cn": "cn/\u5173\u4e8e\u6587\u6863\u5bf9\u8c61\u6a21\u578b", "ru": "ru/\u041e\u0431_\u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0439_\u043c\u043e\u0434\u0435\u043b\u0438_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430" } ) }}</p>
diff --git a/files/hu/web/api/fetch_api/index.html b/files/hu/web/api/fetch_api/index.html
deleted file mode 100644
index 807bb11054..0000000000
--- a/files/hu/web/api/fetch_api/index.html
+++ /dev/null
@@ -1,107 +0,0 @@
----
-title: Fetch API
-slug: Web/API/Fetch_API
-translation_of: Web/API/Fetch_API
----
-<div>{{DefaultAPISidebar("Fetch API")}}</div>
-
-<p class="summary"><span class="seoSummary">A Fetch API egy interfészt biztosít számunkra adatok lekéréséhez (beleértve a hálózaton keresztüli kéréseket is). Ismerősnek fog hatni mindazok számára, akik már használtak {{DOMxRef("XMLHttpRequest")}}-et, de ez az újabb API jóval erőteljesebb és rugalmasabb eszközökkel áll rendelkezésre.</span></p>
-
-<h2 id="Concepts_and_usage">Concepts and usage</h2>
-
-<p>Fetch provides a generic definition of {{DOMxRef("Request")}} and {{DOMxRef("Response")}} objects (and other things involved with network requests). This will allow them to be used wherever they are needed in the future, whether it’s for service workers, Cache API, and other similar things that handle or modify requests and responses, or any kind of use case that might require you to generate your responses programmatically (that is, the use of computer program or personal programming instructions).</p>
-
-<p>It also defines related concepts such as CORS and the HTTP Origin header semantics, supplanting their separate definitions elsewhere.</p>
-
-<p>For making a request and fetching a resource, use the {{DOMxRef("WindowOrWorkerGlobalScope.fetch()")}} method. It is implemented in multiple interfaces, specifically {{DOMxRef("Window")}} and {{DOMxRef("WorkerGlobalScope")}}. This makes it available in pretty much any context you might want to fetch resources in.</p>
-
-<p>The <code>fetch()</code> method takes one mandatory argument, the path to the resource you want to fetch. It returns a {{DOMxRef("Promise")}} that resolves to the {{DOMxRef("Response")}} to that request, whether it is successful or not. You can also optionally pass in an <code>init</code> options object as the second argument (see {{DOMxRef("Request")}}).</p>
-
-<p>Once a {{DOMxRef("Response")}} is retrieved, there are a number of methods available to define what the body content is and how it should be handled (see {{DOMxRef("Body")}}).</p>
-
-<p>You can create a request and response directly using the {{DOMxRef("Request.Request", "Request()")}} and {{DOMxRef("Response.Response", "Response()")}} constructors, but it's uncommon to do this directly. Instead, these are more likely to be created as results of other API actions (for example, {{DOMxRef("FetchEvent.respondWith()")}} from service workers).</p>
-
-<h3 id="Differences_from_jQuery">Differences from jQuery</h3>
-
-<p>The <code>fetch</code> specification differs from <code>jQuery.ajax()</code> in three main ways:</p>
-
-<ul>
- <li>The Promise returned from <code>fetch()</code> <strong>won’t reject on HTTP error status</strong> even if the response is an HTTP <code>404</code> or <code>500</code>. Instead, it will resolve normally (with <code>ok</code> status set to <code>false</code>), and it will only reject on network failure or if anything prevented the request from completing.</li>
- <li><code>fetch()</code> <strong><s>won't</s> can receive cross-site cookies; </strong>you <s>can’t</s> can establish a cross site session using fetch. <s><code><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie">Set-Cookie</a></code> headers from other sites are silently ignored.</s></li>
- <li><code>fetch()</code> <strong>won’t send cookies</strong>, unless you set <code>credentials: 'same-origin'</code>.
- <ul>
- <li>In <a href="https://github.com/whatwg/fetch/pull/585" rel="nofollow noopener">August 2017</a>, the spec changed the default credentials policy to <code>'same-origin'</code>. The following browsers shipped and outdated native fetch, and were updated in these versions:
- <ul>
- <li>Firefox version 61.0b13.</li>
- <li>Safari version 12.</li>
- <li>Chrome version 68.</li>
- </ul>
- </li>
- <li>If you are targetting older versions of these browsers, be sure to include <code>credentials: 'same-origin'</code> <a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters">init option</a> on all api requests that may be affected by cookies/user login state.</li>
- </ul>
- </li>
-</ul>
-
-<div class="note">
-<p><strong>Note</strong>: Find out more about using the Fetch API features in <a href="/en-US/docs/Web/API/Fetch_API/Using_Fetch">Using Fetch</a>, and study concepts in <a href="/en-US/docs/Web/API/Fetch_API/Basic_concepts">Fetch basic concepts</a>.</p>
-</div>
-
-<h3 id="Aborting_a_fetch">Aborting a fetch</h3>
-
-<p>Browsers have started to add experimental support for the {{DOMxRef("AbortController")}} and {{DOMxRef("AbortSignal")}} interfaces (aka The Abort API), which allow operations like Fetch and XHR to be aborted if they have not already completed. See the interface pages for more details.</p>
-
-<h2 id="Fetch_Interfaces">Fetch Interfaces</h2>
-
-<dl>
- <dt>{{DOMxRef("WindowOrWorkerGlobalScope.fetch()")}}</dt>
- <dd>The <code>fetch()</code> method used to fetch a resource.</dd>
- <dt>{{DOMxRef("Headers")}}</dt>
- <dd>Represents response/request headers, allowing you to query them and take different actions depending on the results.</dd>
- <dt>{{DOMxRef("Request")}}</dt>
- <dd>Represents a resource request.</dd>
- <dt>{{DOMxRef("Response")}}</dt>
- <dd>Represents the response to a request.</dd>
-</dl>
-
-<h2 id="Fetch_mixin">Fetch mixin</h2>
-
-<dl>
- <dt>{{DOMxRef("Body")}}</dt>
- <dd>Provides methods relating to the body of the response/request, allowing you to declare what its content type is and how it should be handled.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("Fetch")}}</td>
- <td>{{Spec2("Fetch")}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.WindowOrWorkerGlobalScope.fetch")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/API/Fetch_API/Using_Fetch">Using Fetch</a></li>
- <li><a href="/en-US/docs/Web/API/ServiceWorker_API">ServiceWorker API</a></li>
- <li><a href="/en-US/docs/Web/HTTP/Access_control_CORS">HTTP access control (CORS)</a></li>
- <li><a href="/en-US/docs/Web/HTTP">HTTP</a></li>
- <li><a href="https://github.com/github/fetch">Fetch polyfill</a></li>
- <li><a href="/en-US/docs/Web/API/Fetch_API/Basic_concepts">Fetch basic concepts</a></li>
-</ul>
diff --git a/files/hu/web/api/file/index.html b/files/hu/web/api/file/index.html
deleted file mode 100644
index ce77a8fc63..0000000000
--- a/files/hu/web/api/file/index.html
+++ /dev/null
@@ -1,226 +0,0 @@
----
-title: File
-slug: Web/API/File
-translation_of: Web/API/File
----
-<div>{{APIRef}}</div>
-
-<p>ONGOING The <strong><code>File</code></strong> interface provides information about files and allows JavaScript in a web page to access their content.</p>
-
-<p><code>File</code> objects are generally retrieved from a {{domxref("FileList")}} object returned as a result of a user selecting files using the {{HTMLElement("input")}} element, from a drag and drop operation's {{domxref("DataTransfer")}} object, or from the <code>mozGetAsFile()</code> API on an {{domxref("HTMLCanvasElement")}}. In Gecko, privileged code can create <code>File</code> objects representing any local file without user interaction (see {{anch("Implementation notes")}} for more information.)</p>
-
-<p>A <code>File</code> object is a specific kind of a {{domxref("Blob")}}, and can be used in any context that a Blob can. In particular, {{domxref("FileReader")}}, {{domxref("URL.createObjectURL()")}}, {{domxref("ImageBitmapFactories.createImageBitmap()", "createImageBitmap()")}}, and {{domxref("XMLHttpRequest", "", "send()")}} accept both <code>Blob</code>s and <code>File</code>s.</p>
-
-<p>See <a href="/en-US/docs/Using_files_from_web_applications">Using files from web applications</a> for more information and examples.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h2 id="Constructor">Constructor</h2>
-
-<dl>
- <dt>{{domxref("File.File", "File()")}}</dt>
- <dd>Returns a newly constructed <code>File</code>.</dd>
-</dl>
-
-<h2 id="Properties">Properties</h2>
-
-<dl>
- <dt>{{domxref("File.lastModified")}} {{readonlyinline}}</dt>
- <dd>Returns the last modified time of the file, in millisecond since the UNIX epoch (January 1st, 1970 at Midnight).</dd>
- <dt>{{domxref("File.lastModifiedDate")}} {{readonlyinline}} {{deprecated_inline}} {{gecko_minversion_inline("15.0")}}</dt>
- <dd>Returns the last modified <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date">Date</a></code> of the file referenced by the <code>File</code> object.</dd>
- <dt>{{domxref("File.name")}} {{readonlyinline}}</dt>
- <dd>Returns the name of the file referenced by the <code>File</code> object.</dd>
- <dt>{{domxref("File.webkitRelativePath")}} {{readonlyinline}} {{non-standard_inline}}</dt>
- <dd>Returns the path the URL of the {{domxref("File")}} is relative to.</dd>
-</dl>
-
-<p><code>File</code> implements {{domxref("Blob")}}, so it also has the following properties available to it:</p>
-
-<dl>
- <dt>{{domxref("File.size")}} {{readonlyinline}}</dt>
- <dd>Returns the size of the file.</dd>
- <dt>{{domxref("File.type")}} {{readonlyinline}}</dt>
- <dd>Returns the <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME </a>type of the file.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>The <code>File</code> interface doesn't define any methods, but inherits methods from the {{domxref("Blob")}} interface:</em></p>
-
-<dl>
- <dt>{{domxref("Blob.slice()", "Blob.slice([start[, end[, contentType]]])")}}</dt>
- <dd>Returns a new <code>Blob</code> object containing the data in the specified range of bytes of the source <code>Blob</code>.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('File API')}}</td>
- <td>{{Spec2('File API')}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>13</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9")}}<sup>[1]</sup><br>
- {{CompatGeckoDesktop("7")}}</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>6.0</td>
- </tr>
- <tr>
- <td><code>name</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.9.2")}}</td>
- <td>11.0</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>lastModifiedDate</code> {{deprecated_inline}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("15")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>webkitRelativePath</code> {{non-standard_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("49")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- <tr>
- <td>size</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>11.0</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.9")}}[1]<br>
- {{CompatGeckoMobile("7")}}</td>
- <td>{{CompatNo}}</td>
- <td>11.1</td>
- <td>6.0</td>
- </tr>
- <tr>
- <td><code>name</code></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.9.2")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>lastModifiedData</code> {{deprecated_inline}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("15")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td><code>webkitRelativePath</code> {{non-standard_inline}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("49")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>
- <p>{{CompatVersionUnknown}}</p>
- </td>
- </tr>
- <tr>
- <td>size</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Non-standard implementation.</p>
-
-<h3 id="Implementation_notes">Implementation notes</h3>
-
-<ul>
- <li>In Gecko, you can use this API from within chrome code. See <a href="/en-US/docs/Extensions/Using_the_DOM_File_API_in_chrome_code">Using the DOM File API in chrome code</a> for details. To use it from chrome code, JSM and Bootstrap scope, you have to import it using <code><a href="/en-US/docs/Components.utils.importGlobalProperties">Cu.importGlobalProperties</a>(['File']);</code></li>
- <li>Starting from Gecko 6.0 {{geckoRelease("6.0")}}, privileged code (such as extensions) can pass an {{interface("nsIFile")}} object to the DOM <code>File</code> constructor to specify the file to reference.</li>
- <li>Starting from Gecko 8.0 {{geckoRelease("8.0")}}, you can use <code>new File</code> to create <code>File</code> objects from XPCOM component code instead of having to instantiate the {{interface("nsIDOMFile")}} object directly. The constructor takes, in contrast to {{domxref("Blob")}}, as second argument the filename. The filename can be any String.
- <pre class="syntaxbox">new File(
-  Array parts,
-  String filename,
- BlobPropertyBag properties
-);</pre>
- </li>
- <li>The following non-standard properties and methods were removed in Gecko 7 {{geckoRelease("7.0")}}: {{domxref("File.fileName")}}, {{domxref("File.fileSize")}}, {{domxref("File.getAsBinary()")}}, {{domxref("File.getAsDataURL()")}}, {{domxref("File.getAsText()","File.getAsText(string encoding)")}} ({{bug("661876")}}). Standard properties {{domxref("File.name")}}, {{domxref("Blob.size")}}, and methods on {{domxref("FileReader")}} should be used instead.</li>
-</ul>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/API/File/Using_files_from_web_applications">Using files from web applications</a></li>
- <li>{{domxref("FileReader")}}</li>
- <li><a href="/en-US/docs/Extensions/Using_the_DOM_File_API_in_chrome_code">Using the DOM File API in chrome code</a> (for privileged code running in Gecko, such as Firefox add-ons)</li>
-</ul>
diff --git a/files/hu/web/api/geolocation/index.html b/files/hu/web/api/geolocation/index.html
deleted file mode 100644
index 81d4548549..0000000000
--- a/files/hu/web/api/geolocation/index.html
+++ /dev/null
@@ -1,118 +0,0 @@
----
-title: Geolocation
-slug: Web/API/Geolocation
-tags:
- - API
- - Advanced
- - Geolocation API
- - Interface
- - NeedsTranslation
- - Reference
- - TopicStub
-translation_of: Web/API/Geolocation
----
-<div>{{APIRef("Geolocation API")}}</div>
-
-<p>The <code><strong>Geolocation</strong></code> interface represents an object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.</p>
-
-<p>An object with this interface is obtained using the {{domxref("NavigatorGeolocation.geolocation")}} property implemented by the {{domxref("Navigator")}} object.</p>
-
-<div class="note">
-<p><strong>Note:</strong> For security reasons, when a web page tries to access location information, the user is notified and asked to grant permission. Be aware that each browser has its own policies and methods for requesting this permission.</p>
-</div>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>The <code>Geolocation</code> interface neither implements, nor inherits any property.</em></p>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em><em>The <code>Geolocation</code> interface doesn't inherit any </em>method</em>.</p>
-
-<dl>
- <dt>{{domxref("Geolocation.getCurrentPosition()")}}</dt>
- <dd>Determines the device's current location and gives back a {{domxref("Position")}} object with the data.</dd>
- <dt>{{domxref("Geolocation.watchPosition()")}}</dt>
- <dd>Returns a <code>long</code> value representing the newly established callback function to be invoked whenever the device location changes.</dd>
- <dt>{{domxref("Geolocation.clearWatch()")}}</dt>
- <dd>Removes the particular handler previously installed using <code>watchPosition()</code>.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('Geolocation')}}</td>
- <td>{{Spec2('Geolocation')}}</td>
- <td>Initial specification.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>5</td>
- <td>{{CompatGeckoDesktop("1.9.1")}}</td>
- <td>9</td>
- <td>10.60<br>
- Removed in 15.0<br>
- Reintroduced in 16.0</td>
- <td>5</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>{{CompatGeckoMobile("4")}}</td>
- <td>{{CompatUnknown()}}</td>
- <td>10.60</td>
- <td>{{CompatUnknown()}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/WebAPI/Using_geolocation" title="/en-US/docs/WebAPI/Using_geolocation">Using geolocation</a></li>
-</ul>
diff --git a/files/hu/web/api/htmlbrelement/index.html b/files/hu/web/api/htmlbrelement/index.html
deleted file mode 100644
index 5fdba0f4c1..0000000000
--- a/files/hu/web/api/htmlbrelement/index.html
+++ /dev/null
@@ -1,33 +0,0 @@
----
-title: HTMLBRElement
-slug: Web/API/HTMLBRElement
-translation_of: Web/API/HTMLBRElement
-original_slug: DOM/HTMLBRElement
----
-<div>
- {{ ApiRef() }}</div>
-<h2 id="HTML_törés_elem_felület">HTML törés elem felület</h2>
-<p>A DOM törés elemek a <a class="external" href="http://www.w3.org/TR/html5/text-level-semantics.html#the-br-element" rel="external nofollow" title="http://www.w3.org/TR/html5/text-level-semantics.html#the-br-element">HTMLBRElement</a> (vagy <span style="border: 1px solid rgb(129, 129, 250); background-color: rgb(174, 218, 229); font-size: x-small; white-space: nowrap; padding: 2px;"><a href="../../../../en/HTML" rel="custom nofollow">HTML 4</a></span> <a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-56836063" rel="external nofollow" title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-56836063"><code>HTMLBRElement</code></a>) felületet fejtik ki, amelyek a HTMLElementből öröklődnek, de nem határoz meg további tagokat a {{ HTMLVersionInline(5) }} verzióban. <span class="short_text" id="result_box" lang="hu"><span class="hps">A bevezetett</span> <span class="hps">további</span> <span class="hps">tulajdonság szintén</span> <span class="hps">elavult a</span></span> {{ HTMLVersionInline(4.01) }} verzióban.</p>
-<h2 id="Tulajdonságok">Tulajdonságok</h2>
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Név</th>
- <th scope="col">Típus</th>
- <th scope="col">Leírás</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>clear </code>{{ HTMLVersionInline(4.01) }}, {{ obsolete_inline() }} a {{ HTMLVersionInline(5) }} óta</td>
- <td><code><a href="/en/DOM/DOMString" title="En/DOM/DOMString">DOMString</a></code></td>
- <td>A szöveg körbefuttatását jelzi a lebegő objektumok körül.</td>
- </tr>
- </tbody>
-</table>
-<h2 id="Lásd_még">Lásd még</h2>
-<ul>
- <li>{{ HTMLElement("br") }} HTML elem</li>
-</ul>
-<div class="noinclude">
- {{ languages({ "en": "en/DOM/HTMLBRElement", "hu": "hu/DOM/HTMLBRElement", "ja": "ja/DOM/HTMLBRElement" }) }}</div>
diff --git a/files/hu/web/api/index.html b/files/hu/web/api/index.html
deleted file mode 100644
index 14bc9a0a46..0000000000
--- a/files/hu/web/api/index.html
+++ /dev/null
@@ -1,18 +0,0 @@
----
-title: Web API interfaces
-slug: Web/API
-tags:
- - API
- - Landing
- - NeedsTranslation
- - Reference
- - TopicStub
- - Web
- - WebAPI
-translation_of: Web/API
----
-<p>When writing code for the Web using JavaScript, there are a great many APIs available. Below is a list of all the interfaces (that is, types of objects) that you may be able to use while developing your Web app or site. For a list of the APIs that contain each of these interfaces, see <a href="/en-US/docs/Web/Reference/API" title="/en-US/docs/Web/Reference/API">Web API reference</a>.</p>
-
-<div>
-<div>{{APIListAlpha}}</div>
-</div>
diff --git a/files/hu/web/api/websockets_api/index.html b/files/hu/web/api/websockets_api/index.html
deleted file mode 100644
index d073fbb808..0000000000
--- a/files/hu/web/api/websockets_api/index.html
+++ /dev/null
@@ -1,195 +0,0 @@
----
-title: WebSockets
-slug: Web/API/WebSockets_API
-tags:
- - NeedsBrowserCompatibility
- - NeedsTranslation
- - References
- - TopicStub
- - WebSockets
-translation_of: Web/API/WebSockets_API
-original_slug: WebSockets
----
-<p>WebSockets is an advanced technology that makes it possible to open an interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.</p>
-
-<div class="cleared row topicpage-table">
-<div class="section">
-<h2 class="Documentation" id="Documentation" name="Documentation">Documentation</h2>
-
-<dl>
- <dt><a href="/en-US/docs/WebSockets/Writing_WebSocket_client_applications" title="WebSockets/Writing WebSocket client applications">Writing WebSocket client applications</a></dt>
- <dd>A tutorial guide to writing WebSocket clients to run in the browser.</dd>
- <dt><a href="/en-US/docs/WebSockets/WebSockets_reference" title="WebSockets/WebSockets reference">WebSockets reference</a></dt>
- <dd>A reference to the client-side WebSocket API.</dd>
- <dt><a href="/en-US/docs/WebSockets/Writing_WebSocket_servers" title="WebSockets/Writing WebSocket servers">Writing WebSocket servers (Needs Content)</a></dt>
- <dd>A guide to writing server-side code to handle the WebSocket protocol.</dd>
-</dl>
-
-<p><span class="alllinks"><a href="/en-US/docs/tag/WebSockets" title="tag/WebSockets">View All...</a></span></p>
-</div>
-
-<div class="section">
-<h2 class="Tools" id="Tools" name="Tools">Tools</h2>
-
-<ul>
- <li><a class="external" href="http://socket.io" title="http://socket.io/">Socket.IO</a>: A powerful cross-platform WebSocket API for <a class="external" href="http://nodejs.org" title="http://nodejs.org/">Node.js</a>.</li>
- <li><a class="link-https" href="https://github.com/Worlize/WebSocket-Node" title="https://github.com/Worlize/WebSocket-Node">WebSocket-Node</a>: A WebSocket server API implementation for <a class="external" href="http://nodejs.org" title="http://nodejs.org/">Node.js</a>.</li>
- <li><a href="http://www.totaljs.com">Total.js</a>: Web application framework for <a href="http://www.nodejs.org">Node.js</a> (Example: <a href="https://github.com/totaljs/examples/tree/master/websocket">WebSocket chat</a>)</li>
- <li><a href="http://ajf.me/websocket/#libs" title="http://websocket.us/#libs">A more extensive list of frameworks and libraries here</a></li>
-</ul>
-
-<h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Related Topics</h2>
-
-<ul>
- <li><a href="/en-US/docs/AJAX" title="AJAX">AJAX</a>, <a href="/en-US/docs/JavaScript" title="JavaScript">JavaScript</a></li>
-</ul>
-</div>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a class="external" href="http://tools.ietf.org/html/rfc6455">RFC 6455 - The WebSocket Protocol</a></li>
- <li><a class="external" href="http://www.w3.org/TR/websockets/">WebSocket API Specification</a></li>
- <li><a href="/en-US/docs/Server-sent_events" title="Server-sent_events">Server-Sent Events</a></li>
-</ul>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Version -76 support {{obsolete_inline}}</td>
- <td>6</td>
- <td>{{CompatGeckoDesktop("2.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>11.00 (disabled)</td>
- <td>5.0.1</td>
- </tr>
- <tr>
- <td>Protocol version 7 support {{obsolete_inline}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoDesktop("6.0")}}<br>
- {{property_prefix("Moz")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- <tr>
- <td>Protocol version 10 support {{obsolete_inline}}</td>
- <td>14</td>
- <td>{{CompatGeckoDesktop("7.0")}}<br>
- {{property_prefix("Moz")}}</td>
- <td>HTML5 Labs</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Standard - RFC 6455 Support</td>
- <td>16</td>
- <td>{{CompatGeckoDesktop("11.0")}}</td>
- <td>10</td>
- <td>12.10</td>
- <td>6.0</td>
- </tr>
- <tr>
- <td>Usable in Workers</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("37.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Version -76 support {{obsolete_inline}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Protocol version 7 support {{obsolete_inline}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Protocol version 8 support (IETF draft 10) {{obsolete_inline}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("7.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Standard - RFC 6455 Support</td>
- <td>4.4</td>
- <td>{{CompatGeckoDesktop("11.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>12.10</td>
- <td>6.0</td>
- </tr>
- <tr>
- <td>Usable in Workers</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("37.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h3 id="Gecko_notes">Gecko notes</h3>
-
-<p>WebSockets support in Firefox is continuing to track the evolving WebSocket specification. Firefox 6 implements version 7 of the underlying protocol, while Firefox 7 implements version 8 (as specified by IETF draft 10). Firefox mobile received WebSocket support in Firefox mobile 7.0.</p>
-
-<h4 id="Gecko_6.0">Gecko 6.0</h4>
-
-<p>Prior to Gecko 6.0 {{geckoRelease("6.0")}}, there was, incorrectly, a <code>WebSocket</code> object that some sites were thinking implied that <code>WebSocket</code> services were not prefixed; this object has been renamed to <code>MozWebSocket</code>.</p>
-
-<h4 id="Gecko_7.0">Gecko 7.0</h4>
-
-<p>Starting in Gecko 7.0 {{geckoRelease("7.0")}}, the <code>network.websocket.max-connections</code> preference is used to determine the maximum number of WebSocket connections that can be open at a time. The default value is 200.</p>
-
-<h4 id="Gecko_8.0">Gecko 8.0</h4>
-
-<p>Starting in Gecko 8.0 {{geckoRelease("8.0")}}, the deflate-stream extension to the WebSocket protocol has been disabled, since it's been deprecated from the specification drafts. This resolves incompatibilities with some sites.</p>
-
-<h4 id="Gecko_11.0">Gecko 11.0</h4>
-
-<p>Prior to Gecko 11.0, both incoming and outgoing messages were limited to 16 MB in size. They may now be up to 2 GB in size. Note, however, that memory limitations (especially on mobile devices) make that a theoretical maximum, not a practical one. In reality, transfers of that size will fail on devices that don't have enough memory.</p>
-
-<p>Additionally, ArrayBuffer send and receive support for binary data has been implemented.</p>
-
-<p>Starting in Gecko 11.0, the WebSocket API is no longer prefixed.</p>
diff --git a/files/hu/web/api/webxr_device_api/index.html b/files/hu/web/api/webxr_device_api/index.html
deleted file mode 100644
index 0e5c140113..0000000000
--- a/files/hu/web/api/webxr_device_api/index.html
+++ /dev/null
@@ -1,197 +0,0 @@
----
-title: WebXR Device API
-slug: Web/API/WebXR_Device_API
-translation_of: Web/API/WebXR_Device_API
----
-<p>{{DefaultAPISidebar("WebXR Device API")}}</p>
-
-<p><span class="seoSummary"><strong>WebXR</strong> is a group of standards which are used together to support rendering 3D scenes to hardware designed for presenting virtual worlds (<strong>virtual reality</strong>, or <strong>VR</strong>), or for adding graphical imagery to the real world, (<strong>augmented reality</strong>, or <strong>AR</strong>).</span> The <strong>WebXR Device API</strong> implements the core of the WebXR feature set, managing the selection of output devices, render the 3D scene to the chosen device at the appropriate frame rate, and manage motion vectors created using input controllers.</p>
-
-<p>WebXR-compatible devices include fully-immersive 3D headsets with motion and orientation tracking, eyeglasses which overlay graphics atop the real world scene passing through the frames, and handheld mobile phones which augment reality by capturing the world with a camera and augment that scene with computer-generated imagery.</p>
-
-<p>To accomplish these things, the WebXR Device API provides the following key capabilities:</p>
-
-<ul>
- <li>Find compatible VR or AR output devices</li>
- <li>Render a 3D scene to the device at an appropriate frame rate</li>
- <li>(Optionally) mirror the output to a 2D display</li>
- <li>Create vectors representing the movements of input controls</li>
-</ul>
-
-<p>At the most basic level, a scene is presented in 3D by computing the perspective to apply to the scene in order to render it from the viewpoint of each of the user's eyes by computing the position of each eye and rendering the scene from that position, looking in the direction the user is currently facing. Each of these two images is rendered into a single framebuffer, with the left eye's rendered image on the left and the right eye's viewpoint rendered into the right half of the buffer. Once both eyes' perspectives on the scene have been rendered, the resulting framebuffer is delivered to the WebXR device to be presented to the user through their headset or other appropriate display device.</p>
-
-<h2 id="WebXR_Device_API_concepts_and_usage">WebXR Device API concepts and usage</h2>
-
-<figure style="background: #eee; padding: 0.5em; border: 1px solid #aaa; border-radius: 1em; max-width: 20em; margin-bottom: 1em; margin-right: 2em; float: left;">
-<figcaption><strong>Example WebXR hardware setup</strong></figcaption>
-<img alt='Sketch of a person in a chair with wearing goggles labelled "Head mounted display (HMD)" facing a monitor with a webcam labeled "Position sensor"' src="https://mdn.mozillademos.org/files/11035/hw-setup.png"></figure>
-
-<p>While the older <a href="/en-US/docs/Web/API/WebVR_API">WebVR API</a> was designed solely to support Virtual Reality (VR), WebXR provides support for both VR and Augmented Reality (AR) on the web. Support for AR functionality is added by the WebXR Augmented Reality Module.</p>
-
-<p>A typical XR device can have either 3 or 6 degrees of freedom and might or might not have an external positional sensor.</p>
-
-<p>The equipment may also include an accelerometer, barometer, or other sensors which are used to sense when the user moves through space, rotates their head, or the like.</p>
-
-<h2 id="Accessing_the_WebXR_API">Accessing the WebXR API</h2>
-
-<p>To gain access to the WebXR API within the context of a given window, use the {{domxref("navigator.xr")}} property, which returns an {{domxref("XRSystem")}} object through which the entire WebXR Device APi is then exposed.</p>
-
-<dl>
- <dt>{{domxref("navigator.xr")}} {{ReadOnlyInline}}</dt>
- <dd>This property, added to the {{domxref("Navigator")}} interface, returns the {{domxref("XRSystem")}} object through which the WebXR API is exposed. If this property is missing or <code>null</code>, WebXR is not available.</dd>
-</dl>
-
-<h2 id="WebXR_interfaces">WebXR interfaces</h2>
-
-<dl>
- <dt>{{DOMxRef("XR")}}</dt>
- <dd>The {{domxref("Navigator.xr", "navigator.xr")}} property returns the window's instance of {{domxref("XRSystem")}}, which is the mechanism by which your code accesses the WebXR API. Using the <code>XRSystem</code> interface, you can create {{domxref("XRSession")}}s to represent actual AR and/or VR sessions.</dd>
- <dt>{{DOMxRef("XRFrame")}}</dt>
- <dd>While presenting an XR session, the state of all tracked objects which make up the session are represented by an <code>XRFrame</code>. To get an <code>XRFrame</code>, call the session's {{domxref("XRSession.requestAnimationFrame", "requestAnimationFrame()")}} method, providing a callback which will be called with the <code>XRFrame</code> once available. Events which communicate tracking states will also use <code>XRFrame</code> to contain that information.</dd>
- <dt>{{DOMxRef("XRRenderState")}}</dt>
- <dd>Provides a set of configurable properties which change how the imagery output by an <code>XRSession</code> is composited.</dd>
- <dt>{{DOMxRef("XRSession")}}</dt>
- <dd>Provides the interface for interacting with XR hardware. Once an <code>XRSession</code> is obtained from {{domxref("XRSystem.requestSession", "navigator.xr.requestSession()")}}, the session can be used to check the position and orientation of the viewer, query the device for environment information, and present the virtual or augmented world to the user.</dd>
- <dt>{{DOMxRef("XRSpace")}}</dt>
- <dd><code>XRSpace</code> is an opaque base class on which all virtual coordinate system interfaces are based. Positions in WebXR are always expressed in relation to a particular <code>XRSpace</code> at the time at which a particular {{domxref("XFrame")}} takes place. The space's coordinate system has its origin at the a given physical position.</dd>
- <dt>{{DOMxRef("XRReferenceSpace")}}</dt>
- <dd>A subclass of {{domxref("XRSpace")}} which is used to identify a spatial relationship in relation to the user's physical environment. The <code>XRReferenceSpace</code> coordinate system is expected to remain unchanged through the lifespan of the {{domxref("XRSession")}}.The world has no boundaries and extends infinitely in every direction.</dd>
- <dt>{{DOMxRef("XRBoundedReferenceSpace")}}</dt>
- <dd><code>XRBoundedReferenceSpace</code> extends the {{domxref("XRReferenceSpace")}} coordinate system to further include support for a finite world with set boundaries. Unlike <code>XRReferenceSpace</code>, the origin must be located on the floor (that is, <em>y</em> = 0 at the floor). The x and z components of the origin are typically presumed to be located at or near the center of the room or surface.</dd>
- <dt>{{DOMxRef("XRView")}}</dt>
- <dd>Represents a single view into the XR scene for a particular frame. Each <code>XRView</code> corresponds to the video display surface used to present the scene to the user. For example, a given XR device might have two views: one for the left eye and one for the right. Each view has an offset used to shift the position of the view relative to the camera, in order to allow for creating stereographic effects.</dd>
- <dt>{{DOMxRef("XRViewport")}}</dt>
- <dd>Describes a viewport. A viewport is a rectangular portion of a graphic surface. In WebXR, a viewport represents the area of a drawing surface corresponding to a particular {{domxref("XRView")}}, such as the portion of the WebGL framebuffer used to render one of the two eyes' perspectives on the scene.</dd>
- <dt>{{DOMxRef("XRRigidTransform")}}</dt>
- <dd>A transform defined using a position and orientation in the virtual space's coordinate system as described by the {{domxref("XRSpace")}}.</dd>
- <dt>{{DOMxRef("XRPose")}}</dt>
- <dd>Describes a position and orientation in space relative to an {{domxref("XRSpace")}}.</dd>
- <dt>{{DOMxRef("XRViewerPose")}}</dt>
- <dd>Based on {{domxref("XRPose")}}, <code>XRViewerPose</code> specifies the state of a viewer of the WebXR scene as indicated by the XR device. Included is an array of {{domxref("XRView")}} objects, each representing one perspective on the scene. For example, it takes two views to create the stereoscopic view as perceived by human vision—one for the left eye and a second for the right eye. One view is offset to the left slightly from the viewer's position, and the other view is offset to the right by the same distance. The view list can also be used to represent the perspectives of each of the spectators of a scene, in a multi-user environment.</dd>
- <dt>{{DOMxRef("XRInputSource")}}</dt>
- <dd>Represents any input device the user can use to perform targeted actions within the same virtual space as the viewer. Input sources may include devices such as hand controllers, optical tracking systems, and other devices which are explicitly associated with the XR device. Other input devices such as keyboards, mice, and gamepads are not presented as <code>XRInputSource</code> instances.</dd>
- <dt>{{DOMxRef("XRWebGLLayer")}}</dt>
- <dd>A layer which serves as a <a href="/en-US/docs/Web/API/WebGL_API">WebGL</a> frame buffer into which a scene's view is rendered. Using WebGL to render the scene gains substantial performance benefits due to graphics acceleration.</dd>
-</dl>
-
-<h3 id="Event_interfaces">Event interfaces</h3>
-
-<p>The following interfaces are used to represent the events used by the WebXR API.</p>
-
-<dl>
- <dt>{{domxref("XRInputSourceEvent")}}</dt>
- <dd>Sent when the state of an {{domxref("XRInputSource")}} changes. This can happen, for example, when the position and/or orientation of the device changes, or when buttons are pressed or released.</dd>
- <dt>{{domxref("XRInputSourcesChangeEvent")}}</dt>
- <dd>Sent to indicate that the set of available input sources has changed for the {{domxref("XRSession")}}.</dd>
- <dt>{{domxref("XRReferenceSpaceEvent")}}</dt>
- <dd>Sent when the state of an {{domxref("XRReferenceSpace")}} changes.</dd>
- <dt>{{domxref("XRSessionEvent")}}</dt>
- <dd>Sent to indicate that the state of an {{domxref("XRSession")}} has changed. For example, if the position and/or orient</dd>
-</dl>
-
-<h2 id="Extensions_to_the_WebGL_API">Extensions to the WebGL API</h2>
-
-<p>The WebGL API is extended by the WebXR specification to augment the WebGL context to allow it to be used to render views for display by a WebXR device.</p>
-
-<dl>
- <dt>{{domxref("WebGLRenderingContextBase.makeXRCompatibile","WebGLRenderingContextBase.makeXRCompatibile()")}}</dt>
- <dd>Configures the WebGL context to be compatible with WebXR. If the context was not initially created with the {{domxref("WebGLContextAttributes.xrCompatible", "xrCompatible")}} property set to <code>true</code>, you must call <code>makeXRCompatible()</code> prior to attempting to use the WebGL context for WebXR rendering. Returns a {{jsxref("Promise")}} which resolves once the context has been prepared, or is rejected if the context cannot be configured for use by WebXR.</dd>
-</dl>
-
-<h2 id="Guides_and_tutorials">Guides and tutorials</h2>
-
-<p>The following guides and tutorials are a great resource to learn how to comprehend WebXR and the underlying 3D and VR/AR graphics concepts.</p>
-
-<h3 id="Foundations_and_basics">Foundations and basics</h3>
-
-<dl>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Fundamentals">Fundamentals of WebXR</a></dt>
- <dd>Before diving into the details of how to create content using WebXR, it may be helpful to read this overview of the technology, which includes introductions to terminology that may be unfamiliar to you, or which may be used in a new way.</dd>
- <dt><a href="/en-US/docs/Web/API/WebGL_API/Matrix_math_for_the_web">Matrix math for the web</a></dt>
- <dd>A guide covering how matrices can be used on the web, including both for CSS transforms and for WebGL purposes, as well as to handle the positioning and orientation of objects in WebXR contexts.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Lifecycle">WebXR application life cycle </a></dt>
- <dd>An overview of the overall life cycle of a WebXR application, from startup to shutdown. This article serves as an introduction to the basics of what's involved in creating a WebXR experience without diving into the code in detail. It's a good way to prepare for the next steps.</dd>
-</dl>
-
-<h3 id="Creating_a_mixed_reality_experience">Creating a mixed reality experience</h3>
-
-<dl>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Startup_and_shutdown">Starting up and shutting down a WebXR session</a></dt>
- <dd>Before actually presenting a scene using an XR device such as a headset or goggles, you need to create a WebXR session bound to a rendering layer that draws the scene for presentation in each of the XR device's displays so that the 3D effect can be presented to the user. This guide covers how to create and stop WebXR sessions.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Geometry">Geometry and reference spaces in WebXR</a></dt>
- <dd>In this guide, the required concepts of 3D geometry are briefly reviewed, and the fundamentals of how that geometry is represented in WebXR are detailed. Learn how reference spaces are used to position objects—and the viewer—and the differences among the available types of reference space, as well as their use cases.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Spatial_tracking">Spatial tracking in WebXR</a></dt>
- <dd>This guide describes how objects—including the user's body and its parts—are located in space, and how their movement and orientation relative to one another is monitored and managed over time. This article explains the relationship between spaces, poses, viewers, and views.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Rendering">Rendering and the WebXR frame animation callback</a></dt>
- <dd>Starting with how you schedule frames to be rendered, this guide then continues to cover how to determine the placement of objects in the view and how to then render them into the WebGL buffer used for each of the two eyes' views of the scene.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Cameras">Viewpoints and viewers: Simulating cameras in WebXR </a></dt>
- <dd>WebGL (and therefore WebXR) doesn't really have a concept of a camera, which is the traditional concept used to represent a viewpoint in 3D graphics. In this article, we see how to simulate a camera and how to create the illusion of moving a viewer through a world in which the viewer doesn't really move.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Lighting">Lighting a WebXR setting</a></dt>
- <dd>Since WebXR rendering is based upon WebGL, the same lighting techniques used for any 3D application are applied to WebXR scenes. However, there are issues specific to creating augmented and virtual reality settings that need to be considered when writing your lighting code. This article discusses those issues.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Bounded_reference_spaces">Using bounded reference spaces</a></dt>
- <dd>In this article, we examine how to use a <code>bounded-floor</code> reference space to define the boundaries of where the viewer can safely move about without leaving the area tracked by their XR hardware or colliding with a physical obstacle. On devices which support it, <code>bounded-floor</code> can be a useful tool in your repertoire.</dd>
-</dl>
-
-<h3 id="Making_it_interactive">Making it interactive</h3>
-
-<dl>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Movement_and_motion">Movement, orientation, and motion: A WebXR example</a></dt>
- <dd>In this example and tutorial, we use information learned throughout the WebXR documentation to create a scene containing a rotating cube which the user can move around using both VR headset and keyboard and mouse.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Inputs">Inputs and input sources</a></dt>
- <dd>A guide to input sources and how to efficiently manage the input devices being used to control the WebXR session, and how to receive and process user inputs from those devices.</dd>
- <dt><a href="/en-US/docs/Web/API/Web_Audio_API/Targeting">Targeting and hit detection </a></dt>
- <dd>How to use an input source's targeting ray mode and targeting ray space to display a targeting ray, identify targeted surfaces or objects, and perform related tasks.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Input_profiles">Using WebXR input profiles</a></dt>
- <dd>A guide to interpreting the {{Glossary("JSON")}} data provided by the <a href="https://github.com/immersive-web/webxr-input-profiles/tree/master/packages/registry">WebXR Input Profiles Registry</a>, which can be used to determine what options and controls are available on the user's available input devices.</dd>
- <dt><a href="/en-US/docs/Web/WebXR_Device_API/Gamepads">Supporting advanced controllers and gamepads in WebXR applications</a></dt>
- <dd>WebXR uses the {{domxref("Gamepad")}} object to describe the controls available on complex input devices (such as hand controllers with multiple buttons and/or axes) and gamepad-like devices. In this guide, learn how to make use of these devices' controls.</dd>
-</dl>
-
-<h3 id="Performance_and_security">Performance and security</h3>
-
-<dl>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Performance">WebXR performance guide</a></dt>
- <dd>Recommendations and tips to help you optimize the performance of your WebXR application.</dd>
- <dt><a href="/en-US/docs/Web/API/WebXR_Device_API/Permissions_and_security">Permissions and security for WebXR</a></dt>
- <dd>The WebXR Device API has several areas of security to contend with, from establishing feature-policy to ensuring the user intends to use the mixed reality presentation before activating it.</dd>
-</dl>
-
-<h3 id="Including_other_media">Including other media</h3>
-
-<dl>
- <dt><a href="/en-US/docs/Web/Media/3D_audio">Positional audio in a 3D environment</a></dt>
- <dd>In 3D environments, which may either be 3D scenes rendered to the screen or a mixed reality experience experienced using a headset, it's important for audio to be performed so that it sounds like it's coming from the direction of its source. This guide covers how to accomplish this.</dd>
- <dt><a href="/en-US/docs/Web/Media/3D_video">Playing video in a 3D environment</a></dt>
- <dd>In this guide, we examine how to play video into a 3D scene. This technique can be used in both standard <a href="/en-US/docs/Web/API/WebGL_API">WebGL</a> applications presented on a flat computer screen, or in a <a href="/en-US/docs/Web/API/WebXR_Device_API">WebXR</a>-generated virtual or augmented reality environment.</dd>
-</dl>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName("WebXR")}}</td>
- <td>{{Spec2("WebXR")}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{Compat("api.Navigator.xr")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/Guide/Graphics">Graphics on the web</a></li>
- <li><a href="/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Drawing_graphics">Drawing graphics</a></li>
- <li><a href="/en-US/docs/Web/API/WebGL_API">WebGL API</a>: Accelerated 2D and 3D graphics on the web</li>
- <li><a href="/en-US/docs/Web/API/Canvas_API">Canvas API</a>: 2D drawing for the web</li>
- <li><a href="/en-US/docs/Web/API/Canvas_API/Tutorial">Canvas tutorial</a></li>
-</ul>
diff --git a/files/hu/web/api/window/alert/index.html b/files/hu/web/api/window/alert/index.html
deleted file mode 100644
index 3861de7f10..0000000000
--- a/files/hu/web/api/window/alert/index.html
+++ /dev/null
@@ -1,72 +0,0 @@
----
-title: Window.alert()
-slug: Web/API/Window/alert
-tags:
- - API
- - DOM
- - Függvény
- - Referencia
- - Window
- - alert
-translation_of: Web/API/Window/alert
----
-<p>{{ APIRef }}</p>
-
-<p>A <strong><code>window.alert()</code></strong> függvény megjelenít egy alert ablakot a megadott opcionális szöveggel és egy OK gombbal.</p>
-
-<h2 id="Syntax" name="Syntax">Szintaxis</h2>
-
-<pre class="syntaxbox">window.alert(<em>uzenet</em>);</pre>
-
-<h3 id="Paraméterek">Paraméterek</h3>
-
-<dl>
- <dt><code>uzenet</code> {{optional_inline}}</dt>
- <dd>Az üzenet az a szöveg amit meg szeretnél jeleníteni az alert dobozban.</dd>
-</dl>
-
-<h2 id="Example" name="Example">Példa</h2>
-
-<pre class="brush: js">window.alert("Hello world!");
-alert("Hello world!");</pre>
-
-<p>Mindkettő kimenete:</p>
-
-<p><img alt="Image:AlertHelloWorld.png" src="/files/130/AlertHelloWorld.png"></p>
-
-<h2 id="Notes" name="Notes">Megjegyzések</h2>
-
-<p>Az alertet olyan helyeken kell használni, ahol nem szükséges visszajelzés a felhasználótól, de szeretnénk őt értesíteni valamiről.</p>
-
-<p><span class="comment">The following text is shared between this article, DOM:window.prompt and DOM:window.confirm</span> Ez egy modális ablak - megakadályozza a felhasználót, hogy elérje a felületet, amíg be nem zárja azt. Éppen ezért nem ajánlott a túlhasználata.</p>
-
-<h2 id="Specifikáció">Specifikáció</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specifikáció</th>
- <th scope="col">Állapot</th>
- <th scope="col">Megjegyzés</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'timers-and-user-prompts.html#dom-alert', 'alert()')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Böngésző_kompatibilitás">Böngésző kompatibilitás</h2>
-
-
-
-<p>{{Compat("api.Window.alert")}}</p>
-
-<h2 id="See_also" name="See_also">Lásd még</h2>
-
-<ul>
- <li>{{domxref("window.confirm","confirm")}}</li>
- <li>{{domxref("window.prompt","prompt")}}</li>
- <li>For <a href="/en-US/docs/Chrome" title="/en-US/docs/Chrome">Mozilla Chrome</a> see {{ifmethod("nsIPromptService","alert")}} and {{ifmethod("nsIPromptService","alertCheck")}}</li>
-</ul>
diff --git a/files/hu/web/api/window/index.html b/files/hu/web/api/window/index.html
deleted file mode 100644
index e61d646020..0000000000
--- a/files/hu/web/api/window/index.html
+++ /dev/null
@@ -1,729 +0,0 @@
----
-title: Window
-slug: Web/API/Window
-tags:
- - API
- - Browser
- - DOM
- - Interface
- - JavaScript
- - NeedsTranslation
- - Reference
- - Tab
- - TopicStub
- - Window
- - global
- - global scope
- - scope
-translation_of: Web/API/Window
----
-<div>{{APIRef("DOM")}}</div>
-
-<p><span class="seoSummary">The <strong><code>Window</code></strong> interface represents a window containing a DOM document; the <code>document</code> property points to the <a href="/en-US/docs/Web/API/Document">DOM document</a> loaded in that window.</span> A window for a given document can be obtained using the {{domxref("document.defaultView")}} property.</p>
-
-<p>A global variable, <code>window</code>, representing the window in which the script is running, is exposed to JavaScript code.</p>
-
-<p>The <code>Window</code> interface is home to a variety of functions, namespaces, objects, and constructors which are not necessarily directly associated with the concept of a user interface window. However, the <code>Window</code> interface is a suitable place to include these items that need to be globally available. Many of these are documented in the <a href="/en-US/docs/Web/JavaScript/Reference">JavaScript Reference</a> and the <a href="/en-US/docs/Web/API/Document_Object_Model" title="/en-US/docs/Web/API/Document_Object_Model">DOM Reference</a>.</p>
-
-<p>In a tabbed browser, each tab is represented by its own <code>Window</code> object; the global <code>window</code> seen by JavaScript code running within a given tab always represents the tab in which the code is running. That said, even in a tabbed browser, some properties and methods still apply to the overall window that contains the tab, such as {{Domxref("Window.resizeTo", "resizeTo()")}} and {{Domxref("Window.innerHeight", "innerHeight")}}. Generally, anything that can't reasonably pertain to a tab pertains to the window instead.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h2 id="Constructors">Constructors</h2>
-
-<p>See also the <a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">DOM Interfaces</a>.</p>
-
-<dl>
- <dt>{{domxref("DOMParser")}}</dt>
- <dd><code>DOMParser</code> can parse XML or HTML source stored in a string into a DOM <a href="https://developer.mozilla.org/en-US/docs/DOM/document" title="document">Document</a>. <code>DOMParser</code> is specified in <a href="https://w3c.github.io/DOM-Parsing/" title="http://html5.org/specs/dom-parsing.html">DOM Parsing and Serialization</a>.</dd>
- <dt>{{domxref("Window.GeckoActiveXObject")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Image")}}</dt>
- <dd>Used for creating an {{domxref("HTMLImageElement")}}.</dd>
- <dt>{{domxref("Option")}}</dt>
- <dd>Used for creating an {{domxref("HTMLOptionElement")}}</dd>
- <dt>{{domxref("Window.QueryInterface")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.StaticRange")}} {{experimental_inline}} {{readonlyinline}}</dt>
- <dd>Returns a {{domxref('StaticRange.StaticRange','StaticRange()')}} constructor which creates a {{domxref('StaticRange')}} object.</dd>
- <dt>{{domxref("Worker")}}</dt>
- <dd>Used for creating a <a href="/en-US/docs/DOM/Using_web_workers">Web worker</a></dd>
- <dt>{{domxref("Window.XMLSerializer")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.XPCNativeWrapper")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.XPCSafeJSObjectWrapper")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
-</dl>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>This interface inherits properties from the {{domxref("EventTarget")}} interface and implements properties from the {{domxref("WindowOrWorkerGlobalScope")}} and {{domxref("WindowEventHandlers")}} mixins.</em></p>
-
-<p>Note that properties which are objects (e.g.,. for overriding the prototype of built-in elements) are listed in a separate section below.</p>
-
-<dl>
- <dt>{{domxref("Window.closed")}} {{Non-standard_inline}} {{readOnlyInline}}</dt>
- <dd>This property indicates whether the current window is closed or not.</dd>
- <dt>{{domxref("Window.console")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the console object which provides access to the browser's debugging console.</dd>
- <dt>{{domxref("Window.content")}} and <code>Window._content</code> {{Non-standard_inline}} {{obsolete_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the content element in the current window. Since Firefox 57 (initially Nightly-only), both versions are only available from chrome (privileged) code, and not available to the web anymore.</dd>
- <dt>{{domxref("Window.controllers")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns the XUL controller objects for the current chrome window.</dd>
- <dt>{{domxref("Window.customElements")}} {{ReadOnlyInline}}</dt>
- <dd>returns a reference to the {{domxref("CustomElementRegistry")}} object, which can be used to register new <a href="/en-US/docs/Web/Web_Components/Using_custom_elements">custom elements</a> and get information about previously registered custom elements.</dd>
- <dt>{{domxref("Window.crypto")}} {{readOnlyInline}}</dt>
- <dd>Returns the browser crypto object.</dd>
- <dt>{{domxref("Window.defaultStatus")}} {{Obsolete_inline("gecko23")}}</dt>
- <dd>Gets/sets the status bar text for the given window.</dd>
- <dt>{{domxref("Window.devicePixelRatio")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns the ratio between physical pixels and device independent pixels in the current display.</dd>
- <dt>{{domxref("Window.dialogArguments")}} {{ReadOnlyInline}}</dt>
- <dd>Gets the arguments passed to the window (if it's a dialog box) at the time {{domxref("window.showModalDialog()")}} was called. This is an {{Interface("nsIArray")}}.</dd>
- <dt>{{domxref("Window.directories")}} {{obsolete_inline}}</dt>
- <dd>Synonym of {{domxref("window.personalbar")}}</dd>
- <dt>{{domxref("Window.document")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the document that the window contains.</dd>
- <dt>{{domxref("Window.DOMMatrix")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMMatrix")}} object, which represents 4x4 matrices, suitable for 2D and 3D operations.</dd>
- <dt>{{domxref("Window.DOMMatrixReadOnly")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMMatrixReadOnly")}} object, which represents 4x4 matrices, suitable for 2D and 3D operations.</dd>
- <dt>{{domxref("Window.DOMPoint")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMPoint")}} object, which represents a 2D or 3D point in a coordinate system.</dd>
- <dt>{{domxref("Window.DOMPointReadOnly")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMPointReadOnly")}} object, which represents a 2D or 3D point in a coordinate system.</dd>
- <dt>{{domxref("Window.DOMQuad")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMQuad")}} object, which provides represents a quadrilaterial object, that is one having four corners and four sides.</dd>
- <dt>{{domxref("Window.DOMRect")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMRect")}} object, which represents a rectangle.</dd>
- <dt>{{domxref("Window.DOMRectReadOnly")}} {{readOnlyInline}} {{experimental_inline}}</dt>
- <dd>Returns a reference to a {{domxref("DOMRectReadOnly")}} object, which represents a rectangle.</dd>
- <dt>{{domxref("Window.event")}} {{ReadOnlyInline}}</dt>
- <dd>Returns the <strong>current event</strong>, which is the event currently being handled by the JavaScript code's context, or <code>undefined</code> if no event is currently being handled. The {{domxref("Event")}} object passed directly to event handlers should be used instead whenever possible.</dd>
- <dt>{{domxref("Window.frameElement")}} {{readOnlyInline}}</dt>
- <dd>Returns the element in which the window is embedded, or null if the window is not embedded.</dd>
- <dt>{{domxref("Window.frames")}} {{readOnlyInline}}</dt>
- <dd>Returns an array of the subframes in the current window.</dd>
- <dt>{{domxref("Window.fullScreen")}} {{gecko_minversion_inline("1.9")}}</dt>
- <dd>This property indicates whether the window is displayed in full screen or not.</dd>
- <dt>{{domxref("Window.globalStorage")}} {{gecko_minversion_inline("1.8.1")}} {{Non-standard_inline}} {{Obsolete_inline("gecko13")}}</dt>
- <dd>Unsupported since Gecko 13 (Firefox 13). Use {{domxref("Window.localStorage")}} instead.<br>
- Was: Multiple storage objects that are used for storing data across multiple pages.</dd>
- <dt>{{domxref("Window.history")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the history object.</dd>
- <dt>{{domxref("Window.innerHeight")}} {{readOnlyInline}}</dt>
- <dd>Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.</dd>
- <dt>{{domxref("Window.innerWidth")}} {{readOnlyInline}}</dt>
- <dd>Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.</dd>
- <dt>{{domxref("Window.isSecureContext")}} {{experimental_inline}} {{readOnlyInline}}</dt>
- <dd>Indicates whether a context is capable of using features that require secure contexts.</dd>
- <dt>{{domxref("Window.length")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of frames in the window. See also {{domxref("window.frames")}}.</dd>
- <dt>{{domxref("Window.location")}}</dt>
- <dd>Gets/sets the location, or current URL, of the window object.</dd>
- <dt>{{domxref("Window.locationbar")}} {{ReadOnlyInline}}</dt>
- <dd>Returns the locationbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.localStorage")}} {{readOnlyInline}} {{gecko_minversion_inline("1.9.1")}}</dt>
- <dd>Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.</dd>
- <dt>{{domxref("Window.menubar")}} {{ReadOnlyInline}}</dt>
- <dd>Returns the menubar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.messageManager")}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Returns the <a href="/en-US/docs/The_message_manager">message manager</a> object for this window.</dd>
- <dt>{{domxref("Window.mozAnimationStartTime")}} {{ReadOnlyInline}} {{gecko_minversion_inline("2.0")}} {{Deprecated_inline}}</dt>
- <dd>The time in milliseconds since epoch at which the current animation cycle began. Use {{domxref("Animation.startTime")}} instead.</dd>
- <dt>{{domxref("Window.mozInnerScreenX")}} {{ReadOnlyInline}} {{non-standard_inline}} {{gecko_minversion_inline("1.9.2")}}</dt>
- <dd>Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See <code>mozScreenPixelsPerCSSPixel</code> in {{interface("nsIDOMWindowUtils")}} for a conversion factor to adapt to screen pixels if needed.</dd>
- <dt>{{domxref("Window.mozInnerScreenY")}} {{ReadOnlyInline}} {{non-standard_inline}} {{gecko_minversion_inline("1.9.2")}}</dt>
- <dd>Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See <code>mozScreenPixelsPerCSSPixel</code> for a conversion factor to adapt to screen pixels if needed.</dd>
- <dt>{{domxref("Window.mozPaintCount")}} {{non-standard_inline}} {{ReadOnlyInline}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Returns the number of times the current document has been rendered to the screen in this window. This can be used to compute rendering performance.</dd>
- <dt>{{domxref("Window.name")}}</dt>
- <dd>Gets/sets the name of the window.</dd>
- <dt>{{domxref("Window.navigator")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the navigator object.</dd>
- <dt>{{domxref("Window.opener")}}</dt>
- <dd>Returns a reference to the window that opened this current window.</dd>
- <dt>{{domxref("Window.orientation")}} {{non-standard_inline}} {{deprecated_inline}} {{readOnlyInline}}</dt>
- <dd>Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.</dd>
- <dt>{{domxref("Window.outerHeight")}} {{readOnlyInline}}</dt>
- <dd>Gets the height of the outside of the browser window.</dd>
- <dt>{{domxref("Window.outerWidth")}} {{readOnlyInline}}</dt>
- <dd>Gets the width of the outside of the browser window.</dd>
- <dt>{{domxref("Window.scrollX","Window.pageXOffset")}} {{readOnlyInline}}</dt>
- <dd>An alias for {{domxref("window.scrollX")}}.</dd>
- <dt>{{domxref("Window.scrollY","Window.pageYOffset")}} {{readOnlyInline}}</dt>
- <dd>An alias for {{domxref("window.scrollY")}}</dd>
- <dt>{{domxref("Window.parent")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the parent of the current window or subframe.</dd>
- <dt>{{domxref("Window.performance")}} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("Performance")}} object, which includes the {{domxref("Performance.timing", "timing")}} and {{domxref("Performance.navigation", "navigation")}} attributes, each of which is an object providing <a href="/en-US/docs/Navigation_timing">performance-related</a> data. See also <a href="/en-US/docs/Web/API/Navigation_timing_API/Using_Navigation_Timing">Using Navigation Timing</a> for additional information and examples.</dd>
- <dt>{{domxref("Window.personalbar")}} {{readOnlyInline}}</dt>
- <dd>Returns the personalbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.pkcs11")}} {{obsolete_inline(29)}}</dt>
- <dd>Formerly provided access to install and remove PKCS11 modules.</dd>
- <dt>{{domxref("Window.returnValue")}}</dt>
- <dd>The return value to be returned to the function that called {{domxref("window.showModalDialog()")}} to display the window as a modal dialog.</dd>
- <dt>{{domxref("Window.screen")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the screen object associated with the window.</dd>
- <dt>{{domxref("Window.screenX")}} and {{domxref("Window.screenLeft")}} {{readOnlyInline}}</dt>
- <dd>Both properties return the horizontal distance from the left border of the user's browser viewport to the left side of the screen.</dd>
- <dt>{{domxref("Window.screenY")}} and {{domxref("Window.screenTop")}} {{readOnlyInline}}</dt>
- <dd>Both properties return the vertical distance from the top border of the user's browser viewport to the top side of the screen.</dd>
- <dt>{{domxref("Window.scrollbars")}} {{readOnlyInline}}</dt>
- <dd>Returns the scrollbars object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.scrollMaxX")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.</dd>
- <dt>{{domxref("Window.scrollMaxY")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).</dd>
- <dt>{{domxref("Window.scrollX")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of pixels that the document has already been scrolled horizontally.</dd>
- <dt>{{domxref("Window.scrollY")}} {{readOnlyInline}}</dt>
- <dd>Returns the number of pixels that the document has already been scrolled vertically.</dd>
- <dt>{{domxref("Window.self")}} {{ReadOnlyInline}}</dt>
- <dd>Returns an object reference to the window object itself.</dd>
- <dt>{{domxref("Window.sessionStorage")}}</dt>
- <dd>Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.</dd>
- <dt>{{domxref("Window.sidebar")}} {{non-standard_inline}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the window object of the sidebar.</dd>
- <dt>{{domxref("Window.speechSynthesis")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a {{domxref("SpeechSynthesis")}} object, which is the entry point into using <a href="/en-US/docs/Web/API/Web_Speech_API">Web Speech API</a> speech synthesis functionality.</dd>
- <dt>{{domxref("Window.status")}}</dt>
- <dd>Gets/sets the text in the statusbar at the bottom of the browser.</dd>
- <dt>{{domxref("Window.statusbar")}} {{readOnlyInline}}</dt>
- <dd>Returns the statusbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.toolbar")}} {{readOnlyInline}}</dt>
- <dd>Returns the toolbar object, whose visibility can be toggled in the window.</dd>
- <dt>{{domxref("Window.top")}} {{readOnlyInline}}</dt>
- <dd>Returns a reference to the topmost window in the window hierarchy. This property is read only.</dd>
- <dt>{{domxref("Window.visualViewport")}} {{readOnlyInline}}</dt>
- <dd>Returns a {{domxref("VisualViewport")}} object which represents the visual viewport for a given window.</dd>
- <dt>{{domxref("Window.window")}} {{ReadOnlyInline}}</dt>
- <dd>Returns a reference to the current window.</dd>
- <dt><code>window[0]</code>, <code>window[1]</code>, etc.</dt>
- <dd>Returns a reference to the <code>window</code> object in the frames. See {{domxref("Window.frames")}} for more details.</dd>
-</dl>
-
-<h3 id="Properties_implemented_from_elsewhere">Properties implemented from elsewhere</h3>
-
-<dl>
- <dt>{{domxref("WindowOrWorkerGlobalScope.caches")}} {{readOnlyinline}}</dt>
- <dd>Returns the {{domxref("CacheStorage")}} object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.indexedDB")}} {{readonlyInline}}</dt>
- <dd>Provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an {{domxref("IDBFactory")}} object.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.isSecureContext")}} {{readOnlyinline}}</dt>
- <dd>Returns a boolean indicating whether the current context is secure (<code>true</code>) or not (<code>false</code>).</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.origin")}} {{readOnlyinline}}</dt>
- <dd>Returns the global object's origin, serialized as a string. (This does not yet appear to be implemented in any browser.)</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>This interface inherits methods from the {{domxref("EventTarget")}} interface and implements methods from {{domxref("WindowOrWorkerGlobalScope")}} and {{domxref("EventTarget")}}.</em></p>
-
-<dl>
- <dt>{{domxref("Window.alert()")}}</dt>
- <dd>Displays an alert dialog.</dd>
- <dt>{{domxref("Window.back()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Moves back one in the window history. This method is obsolete; you should instead use {{domxref("History.back", "window.history.back()")}}.</dd>
- <dt>{{domxref("Window.blur()")}}</dt>
- <dd>Sets focus away from the window.</dd>
- <dt>{{domxref("Window.cancelAnimationFrame()")}} {{experimental_inline}}</dt>
- <dd>Enables you to cancel a callback previously scheduled with {{domxref("Window.requestAnimationFrame")}}.</dd>
- <dt>{{domxref("Window.cancelIdleCallback()")}} {{experimental_inline}}</dt>
- <dd>Enables you to cancel a callback previously scheduled with {{domxref("Window.requestIdleCallback")}}.</dd>
- <dt>{{domxref("Window.captureEvents()")}} {{Deprecated_inline}}</dt>
- <dd>Registers the window to capture all events of the specified type.</dd>
- <dt>{{domxref("Window.clearImmediate()")}}</dt>
- <dd>Cancels the repeated execution set using <code>setImmediate</code>.</dd>
- <dt>{{domxref("Window.close()")}}</dt>
- <dd>Closes the current window.</dd>
- <dt>{{domxref("Window.confirm()")}}</dt>
- <dd>Displays a dialog with a message that the user needs to respond to.</dd>
- <dt>{{domxref("Window.disableExternalCapture()")}} {{obsolete_inline(24)}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.dispatchEvent()")}}</dt>
- <dd>Used to trigger an event.</dd>
- <dt>{{domxref("Window.dump()")}} {{Non-standard_inline}}</dt>
- <dd>Writes a message to the console.</dd>
- <dt>{{domxref("Window.enableExternalCapture()")}} {{obsolete_inline(24)}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.find()")}}</dt>
- <dd>Searches for a given string in a window.</dd>
- <dt>{{domxref("Window.focus()")}}</dt>
- <dd>Sets focus on the current window.</dd>
- <dt>{{domxref("Window.forward()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Moves the window one document forward in the history. This method is obsolete; you should instead use {{domxref("History.forward", "window.history.forward()")}}.</dd>
- <dt>{{domxref("Window.getAttention()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Flashes the application icon.</dd>
- <dt>{{domxref("Window.getAttentionWithCycleCount()")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.getComputedStyle()")}}</dt>
- <dd>Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.</dd>
- <dt>{{domxref("Window.getDefaultComputedStyle()")}} {{Non-standard_inline}}</dt>
- <dd>Gets default computed style for the specified element, ignoring author stylesheets.</dd>
- <dt>{{domxref("Window.getSelection()")}}</dt>
- <dd>Returns the selection object representing the selected item(s).</dd>
- <dt>{{domxref("Window.home()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Returns the browser to the home page.</dd>
- <dt>{{domxref("Window.matchMedia()")}} {{gecko_minversion_inline("6.0")}}</dt>
- <dd>Returns a {{domxref("MediaQueryList")}} object representing the specified media query string.</dd>
- <dt>{{domxref("Window.maximize()")}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.minimize()")}} (top-level XUL windows only)</dt>
- <dd>Minimizes the window.</dd>
- <dt>{{domxref("Window.moveBy()")}}</dt>
- <dd>Moves the current window by a specified amount.</dd>
- <dt>{{domxref("Window.moveTo()")}}</dt>
- <dd>Moves the window to the specified coordinates.</dd>
- <dt>{{domxref("Window.open()")}}</dt>
- <dd>Opens a new window.</dd>
- <dt>{{domxref("Window.openDialog()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>Opens a new dialog window.</dd>
- <dt>{{domxref("Window.postMessage()")}}</dt>
- <dd>Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.</dd>
- <dt>{{domxref("Window.print()")}}</dt>
- <dd>Opens the Print Dialog to print the current document.</dd>
- <dt>{{domxref("Window.prompt()")}}</dt>
- <dd>Returns the text entered by the user in a prompt dialog.</dd>
- <dt>{{domxref("Window.releaseEvents()")}} {{Non-standard_inline}} {{Deprecated_inline}}</dt>
- <dd>Releases the window from trapping events of a specific type.</dd>
- <dt>{{domxref("Window.requestAnimationFrame()")}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Tells the browser that an animation is in progress, requesting that the browser schedule a repaint of the window for the next animation frame.</dd>
- <dt>{{domxref("Window.requestIdleCallback()")}}  {{experimental_inline}}</dt>
- <dd>Enables the scheduling of tasks during a browser's idle periods.</dd>
- <dt>{{domxref("Window.resizeBy()")}}</dt>
- <dd>Resizes the current window by a certain amount.</dd>
- <dt>{{domxref("Window.resizeTo()")}}</dt>
- <dd>Dynamically resizes window.</dd>
- <dt>{{domxref("Window.restore()")}} {{Non-standard_inline}} {{obsolete_inline}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.routeEvent()")}} {{obsolete_inline(24)}}</dt>
- <dd>{{todo("NeedsContents")}}</dd>
- <dt>{{domxref("Window.scroll()")}}</dt>
- <dd>Scrolls the window to a particular place in the document.</dd>
- <dt>{{domxref("Window.scrollBy()")}}</dt>
- <dd>Scrolls the document in the window by the given amount.</dd>
- <dt>{{domxref("Window.scrollByLines()")}} {{Non-standard_inline}}</dt>
- <dd>Scrolls the document by the given number of lines.</dd>
- <dt>{{domxref("Window.scrollByPages()")}} {{Non-standard_inline}}</dt>
- <dd>Scrolls the current document by the specified number of pages.</dd>
- <dt>{{domxref("Window.scrollTo()")}}</dt>
- <dd>Scrolls to a particular set of coordinates in the document.</dd>
- <dt>{{domxref("Window.setCursor()")}} {{Non-standard_inline}} (top-level XUL windows only)</dt>
- <dd>Changes the cursor for the current window</dd>
- <dt>{{domxref("Window.setImmediate()")}}</dt>
- <dd>Executes a function after the browser has finished other heavy tasks</dd>
- <dt>{{domxref("Window.setResizable()")}} {{Non-standard_inline}}</dt>
- <dd>Toggles a user's ability to resize a window.</dd>
- <dt>{{domxref("Window.sizeToContent()")}} {{Non-standard_inline}}</dt>
- <dd>Sizes the window according to its content.</dd>
- <dt>{{domxref("Window.stop()")}}</dt>
- <dd>This method stops window loading.</dd>
- <dt>{{domxref("Window.updateCommands()")}} {{Non-standard_inline}}</dt>
- <dd>Updates the state of commands of the current chrome window (UI).</dd>
-</dl>
-
-<h3 id="Methods_implemented_from_elsewhere">Methods implemented from elsewhere</h3>
-
-<dl>
- <dt>{{domxref("EventTarget.addEventListener()")}}</dt>
- <dd>Register an event handler to a specific event type on the window.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.atob()")}}</dt>
- <dd>Decodes a string of data which has been encoded using base-64 encoding.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.btoa()")}}</dt>
- <dd>Creates a base-64 encoded ASCII string from a string of binary data.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.clearInterval()")}}</dt>
- <dd>Cancels the repeated execution set using {{domxref("WindowOrWorkerGlobalScope.setInterval()")}}.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.clearTimeout()")}}</dt>
- <dd>Cancels the delayed execution set using {{domxref("WindowOrWorkerGlobalScope.setTimeout()")}}.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.createImageBitmap()")}}</dt>
- <dd>Accepts a variety of different image sources, and returns a {{domxref("Promise")}} which resolves to an {{domxref("ImageBitmap")}}. Optionally the source is cropped to the rectangle of pixels originating at <em>(sx, sy)</em> with width sw, and height sh.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.fetch()")}}</dt>
- <dd>Starts the process of fetching a resource from the network.</dd>
- <dt>{{domxref("EventTarget.removeEventListener")}}</dt>
- <dd>Removes an event listener from the window.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.setInterval()")}}</dt>
- <dd>Schedules a function to execute every time a given number of milliseconds elapses.</dd>
- <dt>{{domxref("WindowOrWorkerGlobalScope.setTimeout()")}}</dt>
- <dd>Schedules a function to execute in a given amount of time.</dd>
-</dl>
-
-<h3 id="Obsolete_methods">Obsolete methods</h3>
-
-<dl>
- <dt>{{domxref("Window.showModalDialog()")}} {{obsolete_inline}}</dt>
- <dd>Displays a modal dialog. <strong>This method was removed completely in Chrome 43, and Firefox 55.</strong></dd>
-</dl>
-
-<h2 id="Event_handlers">Event handlers</h2>
-
-<p>These are properties of the window object that can be set to establish event handlers for the various things that can happen in the window that might be of interest.</p>
-
-<p><em>This interface inherits event handlers from the {{domxref("EventTarget")}} interface and implements event handlers from {{domxref("WindowEventHandlers")}}.</em></p>
-
-<div class="note">
-<p><strong>Note:</strong> Starting in {{Gecko("9.0")}}, you can now use the syntax <code>if ("onabort" in window)</code> to determine whether or not a given event handler property exists. This is because event handler interfaces have been updated to be proper web IDL interfaces. See <a href="/en-US/docs/DOM/DOM_event_handlers">DOM event handlers</a> for details.</p>
-</div>
-
-<dl>
- <dt>{{domxref("Window.onappinstalled")}}</dt>
- <dd>Called when the page is installed as a webapp. See {{event('appinstalled')}} event.</dd>
- <dt>{{domxref("Window.onbeforeinstallprompt")}}</dt>
- <dd>An event handler property dispatched before a user is prompted to save a web site to a home screen on mobile.</dd>
- <dt>{{domxref("Window.ondevicelight")}}</dt>
- <dd>An event handler property for any ambient light levels changes</dd>
- <dt>{{domxref("Window.ondevicemotion")}} {{gecko_minversion_inline("6.0")}}</dt>
- <dd>Called if accelerometer detects a change (For mobile devices)</dd>
- <dt>{{domxref("Window.ondeviceorientation")}} {{gecko_minversion_inline("6.0")}}</dt>
- <dd>Called when the orientation is changed (For mobile devices)</dd>
- <dt>{{domxref("Window.ondeviceorientationabsolute")}} {{non-standard_inline}} Chrome only</dt>
- <dd>An event handler property for any device orientation changes.</dd>
- <dt>{{domxref("Window.ondeviceproximity")}}</dt>
- <dd>An event handler property for device proximity event</dd>
- <dt>{{domxref("Window.ongamepadconnected")}}</dt>
- <dd>Represents an event handler that will run when a gamepad is connected (when the {{event('gamepadconnected')}} event fires).</dd>
- <dt>{{domxref("Window.ongamepaddisconnected")}}</dt>
- <dd>Represents an event handler that will run when a gamepad is disconnected (when the {{event('gamepaddisconnected')}} event fires).</dd>
- <dt>{{domxref("Window.onmozbeforepaint")}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>An event handler property for the <code>MozBeforePaint</code> event, which is sent before repainting the window if the event has been requested by a call to the {{domxref("Window.mozRequestAnimationFrame()")}} method.</dd>
- <dt>{{domxref("Window.onpaint")}}</dt>
- <dd>An event handler property for paint events on the window.</dd>
- <dt>{{domxref("Window.onrejectionhandled")}} {{experimental_inline}}</dt>
- <dd>An event handler for handled {{jsxref("Promise")}} rejection events.</dd>
- <dt>{{domxref("Window.onuserproximity")}}</dt>
- <dd>An event handler property for user proximity events.</dd>
- <dt>{{domxref("Window.onvrdisplayconnect")}}</dt>
- <dd>Represents an event handler that will run when a compatible VR device has been connected to the computer (when the {{event("vrdisplayconnected")}} event fires).</dd>
- <dt>{{domxref("Window.onvrdisplaydisconnect")}}</dt>
- <dd>Represents an event handler that will run when a compatible VR device has been disconnected from the computer (when the {{event("vrdisplaydisconnected")}} event fires).</dd>
- <dt>{{domxref("Window.onvrdisplayactivate")}}</dt>
- <dd>Represents an event handler that will run when a display is able to be presented to (when the {{event("vrdisplayactivate")}} event fires), for example if an HMD has been moved to bring it out of standby, or woken up by being put on.</dd>
- <dt>{{domxref("Window.onvrdisplaydeactivate")}}</dt>
- <dd>Represents an event handler that will run when a display can no longer be presented to (when the {{event("vrdisplaydeactivate")}} event fires), for example if an HMD has gone into standby or sleep mode due to a period of inactivity.</dd>
- <dt>{{domxref("Window.onvrdisplayblur")}}</dt>
- <dd>Represents an event handler that will run when presentation to a display has been paused for some reason by the browser, OS, or VR hardware (when the {{event("vrdisplayblur")}} event fires) — for example, while the user is interacting with a system menu or browser, to prevent tracking or loss of experience.</dd>
- <dt>{{domxref("Window.onvrdisplayfocus")}}</dt>
- <dd>Represents an event handler that will run when presentation to a display has resumed after being blurred (when the {{event("vrdisplayfocus")}} event fires).</dd>
- <dt>{{domxref("Window.onvrdisplaypresentchange")}}</dt>
- <dd>represents an event handler that will run when the presenting state of a VR device changes — i.e. goes from presenting to not presenting, or vice versa (when the {{event("vrdisplaypresentchange")}} event fires).</dd>
-</dl>
-
-<h3 id="Event_handlers_implemented_from_elsewhere">Event handlers implemented from elsewhere</h3>
-
-<dl>
- <dt>{{domxref("GlobalEventHandlers.onabort")}}</dt>
- <dd>Called when the loading of a resource has been aborted, such as by a user canceling the load while it is still in progress</dd>
- <dt>{{domxref("WindowEventHandlers.onafterprint")}}</dt>
- <dd>Called when the print dialog box is closed. See {{event("afterprint")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onbeforeprint")}}</dt>
- <dd>Called when the print dialog box is opened. See {{event("beforeprint")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onbeforeunload")}}</dt>
- <dd>An event handler property for before-unload events on the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onblur")}}</dt>
- <dd>Called after the window loses focus, such as due to a popup.</dd>
- <dt>{{domxref("GlobalEventHandlers.onchange")}}</dt>
- <dd>An event handler property for change events on the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onclick")}}</dt>
- <dd>Called after the ANY mouse button is pressed &amp; released</dd>
- <dt>{{domxref("GlobalEventHandlers.ondblclick")}}</dt>
- <dd>Called when a double click is made with ANY mouse button.</dd>
- <dt>{{domxref("GlobalEventHandlers.onclose")}}</dt>
- <dd>Called after the window is closed</dd>
- <dt>{{domxref("GlobalEventHandlers.oncontextmenu")}}</dt>
- <dd>Called when the RIGHT mouse button is pressed</dd>
- <dt>{{domxref("GlobalEventHandlers.onerror")}}</dt>
- <dd>Called when a resource fails to load OR when an error occurs at runtime. See {{event("error")}} event.</dd>
- <dt>{{domxref("GlobalEventHandlers.onfocus")}}</dt>
- <dd>Called after the window receives or regains focus. See {{event("focus")}} events.</dd>
- <dt>{{domxref("WindowEventHandlers.onhashchange")}} {{gecko_minversion_inline("1.9.2")}}</dt>
- <dd>An event handler property for {{event('hashchange')}} events on the window; called when the part of the URL after the hash mark ("#") changes.</dd>
- <dt>{{domxref("GlobalEventHandlers.oninput")}}</dt>
- <dd>Called when the value of an &lt;input&gt; element changes</dd>
- <dt>{{domxref("GlobalEventHandlers.onkeydown")}}</dt>
- <dd>Called when you begin pressing ANY key. See {{event("keydown")}} event.</dd>
- <dt>{{domxref("GlobalEventHandlers.onkeypress")}}</dt>
- <dd>Called when a key (except Shift, Fn, and CapsLock) is in pressed position. See {{event("keypress")}} event.</dd>
- <dt>{{domxref("GlobalEventHandlers.onkeyup")}}</dt>
- <dd>Called when you finish releasing ANY key. See {{event("keyup")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onlanguagechange")}}</dt>
- <dd>An event handler property for {{event("languagechange")}} events on the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onload")}}</dt>
- <dd>Called after all resources and the DOM are fully loaded. WILL NOT get called when the page is loaded from cache, such as with back button.</dd>
- <dt>{{domxref("WindowEventHandlers.onmessage")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmousedown")}}</dt>
- <dd>Called when ANY mouse button is pressed.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmousemove")}}</dt>
- <dd>Called continously when the mouse is moved inside the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmouseout")}}</dt>
- <dd>Called when the pointer leaves the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onmouseover")}}</dt>
- <dd>Called when the pointer enters the window</dd>
- <dt>{{domxref("GlobalEventHandlers.onmouseup")}}</dt>
- <dd>Called when ANY mouse button is released</dd>
- <dt>{{domxref("WindowEventHandlers.onoffline")}}</dt>
- <dd>Called when network connection is lost. See {{event("offline")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.ononline")}}</dt>
- <dd>Called when network connection is established. See {{event("online")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onpagehide")}}</dt>
- <dd>Called when the user navigates away from the page, before the onunload event. See {{event("pagehide")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onpageshow")}}</dt>
- <dd>Called after all resources and the DOM are fully loaded. See {{event("pageshow")}} event.</dd>
- <dt>{{domxref("WindowEventHandlers.onpopstate")}} {{gecko_minversion_inline("2.0")}}</dt>
- <dd>Called when a back button is pressed.</dd>
- <dt>{{domxref("GlobalEventHandlers.onreset")}}</dt>
- <dd>Called when a form is reset</dd>
- <dt>{{domxref("GlobalEventHandlers.onresize")}}</dt>
- <dd>Called continuously as you are resizing the window.</dd>
- <dt>{{domxref("GlobalEventHandlers.onscroll")}}</dt>
- <dd>Called when the scroll bar is moved via ANY means. If the resource fully fits in the window, then this event cannot be invoked</dd>
- <dt>{{domxref("GlobalEventHandlers.onwheel")}}</dt>
- <dd>Called when the mouse wheel is rotated around any axis</dd>
- <dt>{{domxref("GlobalEventHandlers.onselect")}}</dt>
- <dd>Called after text in an input field is selected</dd>
- <dt>{{domxref("GlobalEventHandlers.onselectionchange")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("selectionchange")}} event is raised.</dd>
- <dt>{{domxref("WindowEventHandlers.onstorage")}}</dt>
- <dd>Called when there is a change in session storage or local storage. See {{event("storage")}} event</dd>
- <dt>{{domxref("GlobalEventHandlers.onsubmit")}}</dt>
- <dd>Called when a form is submitted</dd>
- <dt>{{domxref("WindowEventHandlers.onunhandledrejection")}} {{experimental_inline}}</dt>
- <dd>An event handler for unhandled {{jsxref("Promise")}} rejection events.</dd>
- <dt>{{domxref("WindowEventHandlers.onunload")}}</dt>
- <dd>Called when the user navigates away from the page.</dd>
-</dl>
-
-<h2 id="Events">Events</h2>
-
-<p>Listen to these events using <code><a href="/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener()</a></code> or by assigning an event listener to the <code>on<em>eventname</em></code> property of this interface.</p>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/error_event">error</a></code></dt>
- <dd>Fired when when a resource failed to load, or can't be used. For example, if a script has an execution error or an image can't be found or is invalid.<br>
- Also available via the {{domxref("GlobalEventHandlers/onerror", "onerror")}} property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/languagechange_event">languagechange</a></code></dt>
- <dd>Fired at the global scope object when the user's preferred language changes.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onlanguagechange">onlanguagechange</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/orientationchange_event">orientationchange</a></code></dt>
- <dd>Fired when the orientation of the device has changed.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onorientationchange">onorientationchange</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/devicemotion_event">devicemotion</a></code></dt>
- <dd>Fired at a regular interval, indicating the amount of physical force of acceleration the device is receiving and the rate of rotation, if available.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/deviceorientation_event">deviceorientation</a></code></dt>
- <dd>Fired when fresh data is available from the magnetometer orientation sensor about the current orientation of the device as compared to the Earth coordinate frame.</dd>
- <dt><code>{{domxref("Document/defaultView/resize_event", "resize")}}</code></dt>
- <dd>Fired when the window has been resized.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/onresize">onresize</a></code> property.</dd>
- <dt><code>{{domxref("Document/defaultView/storage_event", "storage")}}</code></dt>
- <dd>Fired when a storage area (<code>localStorage</code> or <code>sessionStorage</code>) has been modified in the context of another document.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onstorage">onstorage</a></code> property.</dd>
-</dl>
-
-<h3 id="Animation_events">Animation events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/animationcancel_event">animationcancel</a></code></dt>
- <dd>Fired when an animation unexpectedly aborts.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/onanimationcancel">onanimationcancel</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/animationend_event">animationend</a></code></dt>
- <dd>Fired when an animation has completed normally.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/onanimationend">onanimationend</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/animationiteration_event">animationiteration</a></code></dt>
- <dd>Fired when an animation iteration has completed.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/onanimationiteration">onanimationiteration</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/animationstart_event">animationstart</a></code></dt>
- <dd>Fired when an animation starts.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/onanimationstart">onanimationstart</a></code> property.</dd>
-</dl>
-
-<h3 id="Clipboard_events">Clipboard events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/clipboardchange_event">clipboardchange</a></code></dt>
- <dd>Fired when the system clipboard content changes.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/copy_event">copy</a></code></dt>
- <dd>Fired when the user initiates a copy action through the browser's user interface.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy"><code>oncopy</code></a> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/cut_event">cut</a></code></dt>
- <dd>Fired when the user initiates a cut action through the browser's user interface.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut"><code>oncut</code></a> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/paste_event">paste</a></code></dt>
- <dd>Fired when the user initiates a paste action through the browser's user interface.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste"><code>onpaste</code></a> property.</dd>
-</dl>
-
-<h3 id="Connection_events">Connection events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/offline_event">offline</a></code></dt>
- <dd>Fired when the browser has lost access to the network and the value of <code>navigator.onLine</code> has switched to <code>false</code>.<br>
- Also available via the {{domxref("WindowEventHandlers.onoffline", "onoffline")}} property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/online_event">online </a></code></dt>
- <dd>Fired when the browser has gained access to the network and the value of <code>navigator.onLine</code> has switched to <code>true</code>.<br>
- Also available via the {{domxref("WindowEventHandlers.ononline", "ononline")}} property.</dd>
-</dl>
-
-<h3 id="Focus_events">Focus events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/blur_event">blur</a></code></dt>
- <dd>Fired when an element has lost focus.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onblur"><code>onblur</code></a> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/focus_event">focus</a></code></dt>
- <dd>Fired when an element has gained focus.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onfocus"><code>onfocus</code></a> property</dd>
-</dl>
-
-<h3 id="Gamepad_events">Gamepad events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/gamepadconnected_event">gamepadconnected</a></code></dt>
- <dd>Fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/ongamepadconnected">ongamepadconnected</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/gamepaddisconnected_event">gamepaddisconnected</a></code></dt>
- <dd>Fired when the browser detects that a gamepad has been disconnected.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/ongamepaddisconnected">ongamepaddisconnected</a></code> property</dd>
-</dl>
-
-<h3 id="History_events">History events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/hashchange_event">hashchange</a></code></dt>
- <dd>Fired when the fragment identifier of the URL has changed (the part of the URL beginning with and following the <code>#</code> symbol).<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onhashchange">onhashchange</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/pagehide_event">pagehide</a></code></dt>
- <dd>Sent when the browser  hides the current document while in the process of switching to displaying in its palce a different document from the session's history. This happens, for example, when the user clicks the Back button or when they click the Forward button to move ahead in session history.<br>
- Also available through the <code><a href="/en-US/docs/Mozilla/Tech/XUL/Attribute/onpagehide">onpagehide</a></code> event handler property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/pageshow_event">pageshow</a></code></dt>
- <dd>Sent when the browser makes the document visible due to navigation tasks, including not only when the page is first loaded, but also situations such as the user navigating back to the page after having navigated to another within the same tab.<br>
- Also available using the <code><a href="/en-US/docs/Mozilla/Tech/XUL/Attribute/onpageshow">onpageshow</a></code> event handler property.</dd>
- <dt><code>{{domxref("Document/defaultView/popstate_event", "popstate")}}</code></dt>
- <dd>Fired when the active history entry changes.<br>
- Also available using the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onpopstate">onpopstate</a></code> event handler property.</dd>
-</dl>
-
-<h3 id="Load_unload_events">Load &amp; unload events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/beforeunload_event">beforeunload</a></code></dt>
- <dd>Fired when the window, the document and its resources are about to be unloaded.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload">onbeforeunload</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/DOMContentLoaded_event">DOMContentLoaded</a></code></dt>
- <dd>Fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/load_event">load</a></code></dt>
- <dd>Fired when the whole page has loaded, including all dependent resources such as stylesheets images.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/onload">onload</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/unload_event">unload</a></code></dt>
- <dd>Fired when the document or a child resource is being unloaded.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onunload">onunload</a></code> property.</dd>
-</dl>
-
-<h3 id="Manifest_events">Manifest events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/appinstalled_event">appinstalled</a></code></dt>
- <dd>Fired when the browser has successfully installed a page as an application.<br>
- Also available via the <a href="/en-US/docs/Web/API/Window/onappinstalled">onappinstalled</a> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/beforeinstallprompt_event">beforeinstallprompt</a></code></dt>
- <dd>Fired when a user is about to be prompted to install a web application.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onbeforeinstallprompt">onbeforeinstallprompt</a></code> property.</dd>
-</dl>
-
-<h3 id="Messaging_events">Messaging events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/message_event">message</a></code></dt>
- <dd>Fired when the window receives a message, for example from a call to <code><a href="/en-US/docs/Web/API/Window/postMessage">Window.postMessage()</a></code> from another browsing context.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onmessage">onmessage</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/messageerror_event">messageerror</a></code></dt>
- <dd>Fired when a <code>Window</code> object receives a message that can't be deserialized.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onmessageerror">onmessageerror</a></code> property.</dd>
-</dl>
-
-<h3 id="Print_events">Print events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/afterprint_event">afterprint</a></code></dt>
- <dd>Fired after the associated document has started printing or the print preview has been closed.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint"><code>onafterprint</code></a> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/beforeprint_event">beforeprint</a></code></dt>
- <dd>Fired when the associated document is about to be printed or previewed for printing.<br>
- Also available via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint"><code>onbeforeprint</code></a> property.</dd>
-</dl>
-
-<h3 id="Promise_rejection_events">Promise rejection events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/rejectionhandled_event">rejectionhandled</a></code></dt>
- <dd>Sent every time a JavaScript {{jsxref("Promise")}} is rejected, regardless of whether or not there is a handler in place to catch the rejection.<br>
- Also available through the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onrejectionhandled">onrejectionhandled</a></code> event handler property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/unhandledrejection_event">unhandledrejection</a></code></dt>
- <dd>Sent when a JavaScript {{jsxref("Promise")}} is rejected but there is no handler in place to catch the rejection.<br>
- Also available using the <code><a href="/en-US/docs/Web/API/WindowEventHandlers/onunhandledrejection">onunhandledrejection</a></code> event handler property.</dd>
-</dl>
-
-<h3 id="Transition_events">Transition events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/transitioncancel_event">transitioncancel</a></code></dt>
- <dd>Fired when a <a href="https://developer.mozilla.org/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> is canceled.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/ontransitioncancel">ontransitioncancel</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/transitionend_event">transitionend</a></code></dt>
- <dd>Fired when a <a href="https://developer.mozilla.org/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has completed.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/ontransitionend">ontransitionend</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/transitionrun_event">transitionrun</a></code></dt>
- <dd>Fired when a <a href="https://developer.mozilla.org/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> is first created.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/ontransitionrun">ontransitionrun</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/transitionstart_event">transitionstart</a></code></dt>
- <dd>Fired when a <a href="https://developer.mozilla.org/en-US/docs/CSS/Using_CSS_transitions">CSS transition</a> has actually started.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/GlobalEventHandlers/ontransitionstart">ontransitionstart</a></code> property.</dd>
-</dl>
-
-<h3 id="WebVR_events">WebVR events</h3>
-
-<dl>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplayactivate_event">vrdisplayactivate</a></code></dt>
- <dd>Fired when a VR display becomes available to be presented to, for example if an HMD has been moved to bring it out of standby, or woken up by being put on.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplayactivate">onvrdisplayactivate</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplayblur_event">vrdisplayblur</a></code></dt>
- <dd>Fired when presentation to a VR display has been paused for some reason by the browser, OS, or VR hardware.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplayblur">onvrdisplayblur</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplayconnect_event">vrdisplayconnect</a></code></dt>
- <dd>Fired when a compatible VR display is connected to the computer.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplayconnect">onvrdisplayconnect</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplaydeactivate_event">vrdisplaydeactivate</a></code></dt>
- <dd>Fired when a VR display can no longer be presented to, for example if an HMD has gone into standby or sleep mode due to a period of inactivity.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplaydeactivate">onvrdisplaydeactivate</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplaydisconnect_event">vrdisplaydisconnect</a></code></dt>
- <dd>Fired when a compatible VR display is disconnected from the computer.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplaydisconnect">onvrdisplaydisconnect</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplayfocus_event">vrdisplayfocus</a></code></dt>
- <dd>Fired when presentation to a VR display has resumed after being blurred.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplayfocus">onvrdisplayfocus</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplaypresentchange_event">vrdisplaypresentchange</a></code></dt>
- <dd>fired when the presenting state of a VR display changes — i.e. goes from presenting to not presenting, or vice versa.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplaypresentchange">onvrdisplaypresentchange</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplaypointerrestricted_event">vrdisplaypointerrestricted</a></code></dt>
- <dd>Fired when the VR display's pointer input is restricted to consumption via a <a href="/en-US/docs/Web/API/Pointer_Lock_API">pointerlocked element</a>.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplaypointerrestricted">onvrdisplaypointerrestricted</a></code> property.</dd>
- <dt><code><a href="/en-US/docs/Web/API/Window/vrdisplaypointerunrestricted_event">vrdisplaypointerunrestricted</a></code></dt>
- <dd>Fired when the VR display's pointer input is no longer restricted to consumption via a <a href="/en-US/docs/Web/API/Pointer_Lock_API">pointerlocked element</a>.<br>
- Also available via the <code><a href="/en-US/docs/Web/API/Window/onvrdisplaypointerunrestricted">onvrdisplaypointerunrestricted</a></code> property.</dd>
-</dl>
-
-<h2 id="Interfaces">Interfaces</h2>
-
-<p>See <a href="/en-US/docs/DOM/DOM_Reference" title="/en-US/docs/DOM/DOM_Reference">DOM Reference</a></p>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.Window")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Working_with_windows_in_chrome_code">Working with windows in chrome code</a></li>
-</ul>
diff --git a/files/hu/web/api/window/stop/index.html b/files/hu/web/api/window/stop/index.html
deleted file mode 100644
index a046730303..0000000000
--- a/files/hu/web/api/window/stop/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: window.stop
-slug: Web/API/Window/stop
-translation_of: Web/API/Window/stop
-original_slug: Web/API/Window.stop
----
-<div>
-  {{ApiRef}}</div>
-<h2 id="Summary" name="Summary">Összefoglalás</h2>
-<p>Ez az eljárás leállítja az ablak betöltését.</p>
-<h2 id="Syntax" name="Syntax">Szintaxis</h2>
-<pre class="syntaxbox">window.stop()
-</pre>
-<h2 id="Example" name="Example">Példa</h2>
-<pre class="brush:js">window.stop();
-</pre>
-<h2 id="Notes" name="Notes">Megjegyzések</h2>
-<p>A stop() eljárás teljesen megegyezik azzal, amikor a 'megállás/betöltés megszakítása' gombra kattint a böngészőben. Amiatt a szabály miatt, melyben a kódok betöltöttek, a stop() eljárás nem állítja le azt, amit csak betölteni kell (nem letölteni a megjelenítéshez), de megszakítja a nagy képek, új ablakok, és egyéb objektumok betöltését, melynek el van halasztva a betöltése.</p>
-<h2 id="Specification" name="Specification">Tulajdonságok</h2>
-<p>DOM szint: 0. Nem része a tulajdonságoknak.</p>
diff --git a/files/hu/web/api/worker/index.html b/files/hu/web/api/worker/index.html
deleted file mode 100644
index 706c2b3935..0000000000
--- a/files/hu/web/api/worker/index.html
+++ /dev/null
@@ -1,147 +0,0 @@
----
-title: Worker
-slug: Web/API/Worker
-translation_of: Web/API/Worker
----
-<p>{{APIRef("Web Workers API")}}</p>
-
-<p>The <strong><code>Worker</code></strong> interface of the <a href="/en-US/docs/Web/API/Web_Workers_API">Web Workers API</a> represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the <code>Worker()</code> constructor and specifying a script to be run in the worker thread.</p>
-
-<p>Workers may in turn spawn new workers as long as those workers are hosted within the same <a href="/en-US/docs/Web/Security/Same-origin_policy">origin</a> as the parent page (Note: nested workers are <a href="https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/5R3B4RN4GHU">currently not implemented in Blink</a>).  In addition workers may use <a class="internal" href="/en/DOM/XMLHttpRequest" title="En/XMLHttpRequest"><code>XMLHttpRequest</code></a> for network I/O, with the stipulation that the <code>responseXML</code> and <code>channel</code> attributes on <code>XMLHttpRequest</code> always return <code>null</code>.</p>
-
-<p><a href="/En/DOM/Worker/Functions_available_to_workers" title="En/DOM/Worker/Functions available to workers">Not all interfaces and functions are available</a> to the script associated with a <code>Worker</code>.</p>
-
-<p>In Firefox, if you want to use workers in extensions and would like to have access to <a href="/en/js-ctypes" title="en/js-ctypes">js-ctypes</a>, you should use the {{ domxref("ChromeWorker") }} object instead.</p>
-
-<h2 id="Properties">Properties</h2>
-
-<p><em>Inherits properties from its parent, {{domxref("EventTarget")}}, and implements properties from {{domxref("AbstractWorker")}}.</em></p>
-
-<h3 id="Event_handlers">Event handlers</h3>
-
-<dl>
- <dt>{{domxref("AbstractWorker.onerror")}}</dt>
- <dd>An {{ domxref("EventListener") }} called whenever an {{domxref("ErrorEvent")}} of type <code>error</code> bubbles through to the worker. This is inherited from {{domxref("AbstractWorker")}}.</dd>
- <dt>{{domxref("Worker.onmessage")}}</dt>
- <dd>An {{ domxref("EventListener") }} called whenever a {{domxref("MessageEvent")}} of type <code>message</code> bubbles through the worker — i.e. when a message is sent to the parent document from the worker via {{domxref("DedicatedWorkerGlobalScope.postMessage")}}. The message is stored in the event's {{domxref("MessageEvent.data", "data")}} property.</dd>
-</dl>
-
-<h2 id="Constructors">Constructors</h2>
-
-<dl>
- <dt>{{domxref("Worker.Worker", "Worker()")}}</dt>
- <dd>Creates a dedicated web worker that executes the script at the specified URL. Workers can also be constructed using <a href="/en-US/docs/Web/API/Blob">Blobs</a>.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<p><em>Inherits methods from its parent, {{domxref("EventTarget")}}, and implements properties from {{domxref("AbstractWorker")}}.</em></p>
-
-<dl>
- <dt>{{domxref("Worker.postMessage()")}}</dt>
- <dd>Sends a message — which can consist of <code>any</code> JavaScript object — to the worker's inner scope.</dd>
- <dt>{{domxref("Worker.terminate()")}}</dt>
- <dd>Immediately terminates the worker. This does not offer the worker an opportunity to finish its operations; it is simply stopped at once. ServiceWorker instances do not support this method.</dd>
-</dl>
-
-<h2 id="Example">Example</h2>
-
-<p>The following code snippet shows creation of a {{domxref("Worker")}} object using the {{domxref("Worker.Worker", "Worker()")}} constructor and usage of the object:</p>
-
-<pre class="brush: js">var myWorker = new Worker("worker.js");
-var first = document.querySelector('#number1');
-var second = document.querySelector('#number2');
-
-first.onchange = function() {
- myWorker.postMessage([first.value,second.value]);
- console.log('Message posted to worker');
-}</pre>
-
-<p>For a full example, see our<a class="external external-icon" href="https://github.com/mdn/simple-web-worker">Basic dedicated worker example</a> (<a class="external external-icon" href="http://mdn.github.io/simple-web-worker/">run dedicated worker</a>).</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', "#worker", "Worker")}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>No change from {{SpecName("Web Workers")}}.</td>
- </tr>
- <tr>
- <td>{{SpecName('Web Workers', "#worker", "Worker")}}</td>
- <td>{{Spec2('Web Workers')}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>Support varies for different types of workers. See each worker type's page for specifics.</p>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4</td>
- <td>3.5</td>
- <td>10.0</td>
- <td>10.6</td>
- <td>4</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4.4</td>
- <td>3.5</td>
- <td>1.0.1</td>
- <td>10.0</td>
- <td>11.5</td>
- <td>5.1</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a class="internal" href="/En/Using_web_workers" title="en/Using DOM workers">Using web workers</a></li>
- <li><a href="/En/DOM/Worker/Functions_available_to_workers" title="https://developer.mozilla.org/En/DOM/Worker/Functions_available_to_workers">Functions available to workers</a></li>
- <li>Other kind of workers: {{ domxref("SharedWorker") }} and <a href="/en-US/docs/Web/API/ServiceWorker_API">ServiceWorker</a>.</li>
- <li>Non-standard, Gecko-specific workers: {{ domxref("ChromeWorker") }}, used by extensions.</li>
-</ul>
diff --git a/files/hu/web/api/xmlhttprequest/index.html b/files/hu/web/api/xmlhttprequest/index.html
deleted file mode 100644
index 6caf14a9ae..0000000000
--- a/files/hu/web/api/xmlhttprequest/index.html
+++ /dev/null
@@ -1,235 +0,0 @@
----
-title: XMLHttpRequest
-slug: Web/API/XMLHttpRequest
-translation_of: Web/API/XMLHttpRequest
----
-<div>{{APIRef("XMLHttpRequest")}}</div>
-
-<div> </div>
-
-<p>Az <span class="seoSummary"><code>XMLHttpRequest</code> <a href="https://developer.mozilla.org/hu/docs/Web/Reference/API">API</a> a szerverrel való direkt kommunikációra használható, a teljes oldal újratöltése nélkül. Ez lehetővé teszi a weboldalak bizonyos adatainak frissítését, a nélkül, hogy a felhasználónak meg kéne szakítania azt, amit éppen csinál.</span>  Az <code>XMLHttpRequest</code> az <a href="/hu/docs/AJAX">Ajax</a> alapja.</p>
-
-<p>{{InheritanceDiagram}}</p>
-
-<h5 id="Történet">Történet</h5>
-
-<p>Az <code>XMLHttpRequest</code> objektumot eredetileg a Microsoft alkotta meg, később átvette a Mozilla, az Apple, és a Google is. Mára általánosan elfogadott <a class="external" href="https://xhr.spec.whatwg.org/">szabvány lett a <abbr title="Web Hypertext Application Technology Working Group">WHATWG</abbr></a> által. A neve ellenére, az <code>XMLHttpRequest</code> több adattípussal képes dolgozni, nem csupán az XML-el, és a <a href="/hu/docs/Web/HTTP">HTTP</a> mellett más protokollokat is támogat (beleértve a <code>file</code> és az <code>ftp</code> protokollt is).</p>
-
-<h2 id="Konstruktor">Konstruktor</h2>
-
-<dl>
- <dt>{{domxref("XMLHttpRequest.XMLHttpRequest", "XMLHttpRequest()")}}</dt>
- <dd>A konstruktor létrehoz egy üres XMLHttpRequest objektumot. Ez szükséges előfeltétele annak, hogy az objektum eljárásait meghívhassunk.
- <pre class="brush: js"> var xhr = new XMLHttpRequest();
- </pre>
- </dd>
-</dl>
-
-<h2 id="Tulajdonságok">Tulajdonságok</h2>
-
-<p><em>Az <code>XMLHttpRequest</code> <a href="https://developer.mozilla.org/hu/docs/Web/Reference/API">API</a> az {{domxref("XMLHttpRequestEventTarget")}} és az {{domxref("EventTarget")}} tulajdonságait is örökli.</em></p>
-
-<dl>
- <dt id="xmlhttprequest-onreadystatechange">{{domxref("XMLHttpRequest.onreadystatechange")}}</dt>
- <dd>Ez az {{domxref("EventHandler")}} (eseménykezelő) mindig meghívódik, amikor a <code>readyState</code> tulajdonság értéke megváltozik, így – szükség szerint – minden állapothoz külön esemény vagy eljárás rendelhető. Az alábbi példában minden állapotváltozásról tájékoztatjuk a felhasználót:
- <pre class="brush: js"> xhr.onreadystatechange = function () {
- switch(xhr.readyState) {
- case 0: alert("A kérelem nem inicializált");
- break;
- case 1: alert("A kapcsolat létrejött");
- break;
- case 2: alert("A kérelem fogadva");
- break;
- case 3: alert("A kérelem feldolgozása folyamatban");
- break;
- default: alert("A kérelem feldolgozva, válasz kész");
- }
- };
- </pre>
- A gyakorlatban erre azonban ritkán van szükség. Praktikusabb, ha csak a feldolgozott kérelemre érkező válaszra reagálunk (az alábbi példában kiírjuk a válasz szövegét):</dd>
- <dd>
- <pre class="brush: js"> xhr.onreadystatechange = function() {
- if (this.readyState == 4 &amp;&amp; this.status == 200) {
- alert(this.responseText);
- }
- };
- </pre>
- </dd>
- <dt id="xmlhttprequest-readystate">{{domxref("XMLHttpRequest.readyState")}} {{readonlyinline}}</dt>
- <dd>A kérelem állapotát jelző <code>előjel nélküli számmal</code> tér vissza, amely lehet:
- <ol start="0">
- <li>- ha a kérés nem inicializált</li>
- <li>- ha a kapcsolat létrejött a szerverrel</li>
- <li>- ha a kérés fogadva</li>
- <li>- ha a kérés feldolgozása folyamatban</li>
- <li>- ha a kérés kész, válasz kész</li>
- </ol>
- </dd>
- <dt>{{domxref("XMLHttpRequest.response")}} {{readonlyinline}}</dt>
- <dd>A válasz törzsét tartalmazza, melynek típusát a {{domxref("XMLHttpRequest.responseType")}} tulajdonság értéke határozza meg.</dd>
- <dt id="xmlhttprequest-responsetext">{{domxref("XMLHttpRequest.responseText")}} {{readonlyinline}}</dt>
- <dd>Visszatérési értéke lehet {{domxref("DOMString")}} amely egyszerű szövegként tartalmazza a választ az elküldött kérelemre, vagy <code>null,</code>ha a kérelem sikertelen volt.</dd>
- <dt id="xmlhttprequest-responsetype">{{domxref("XMLHttpRequest.responseType")}}</dt>
- <dd>A válasz típusát határozza meg, amely lehet:
- <ul>
- <li>üres sztring (alapértelmezett)</li>
- <li>{{domxref("ArrayBuffer")}} objektum</li>
- <li>{{domxref("Blob")}} objektum</li>
- <li>{{domxref("Document")}}</li>
- <li>JavaScript objektum (JSON)</li>
- <li>{{domxref("DOMString")}}</li>
- </ul>
- </dd>
- <dt id="xmlhttprequest-responsexml">{{domxref("XMLHttpRequest.responseURL")}} {{readonlyinline}}</dt>
- <dd>Visszatérési értéke a válasz szerializált URL-je, vagy üres sztring, ha az URL értéke null.</dd>
- <dt id="xmlhttprequest-responsexml">{{domxref("XMLHttpRequest.responseXML")}} {{readonlyinline}}</dt>
- <dd>Egy {{domxref("Document")}}-el tér vissza, amely tartalmazza a kérelemre kapott választ XML formátumban, vagy <code>null</code>-t, ha a kérés sikertelen, nem lehetett elküldeni, illetve a válasz nem jeleníthető meg XML formátumban. Not available in workers.</dd>
- <dt id="xmlhttprequest-status">{{domxref("XMLHttpRequest.status")}} {{readonlyinline}}</dt>
- <dd>A szerver által a kérelemre küldött válasz HTTP státusz-kódját adja vissza, <code>előjel nélküli, háromjegyű szám</code> formátumban (pl. 200, ha a kérelem elfogadva, 404, ha a kért erőforrás nem található a szerveren - bővebben a HTTP státusz kódokról <a href="https://www.rackhost.hu/tudasbazis/informatikai-alapok/http-hibakodok/">itt</a>).</dd>
- <dt id="xmlhttprequest-statustext">{{domxref("XMLHttpRequest.statusText")}} {{readonlyinline}}</dt>
- <dd>A szerver által küldött válasz státusz-kódjához tartozó szöveggel (response message) tér vissza (pl. "<code>200 OK</code>", siker esetén, bővebben lásd fent).</dd>
-</dl>
-
-<div class="note">
-<p><strong>Megjegyzés:</strong> a HTTP/2 specifikáció alapján (<a href="https://http2.github.io/http2-spec/#rfc.section.8.1.2.4">8.1.2.4</a> <a href="https://http2.github.io/http2-spec/#HttpResponse">Response Pseudo-Header Fields</a>) HTTP/2 válaszokat egy :status pseudo-header mező határozza meg, amely tartalmazza a HTTP státusz kód mezőt is. A HTTP/2 nem határozza meg, hogy a verzió és más kifejezések hogy jelenjenek meg a válasz HTTP/1.1 állapot-sorában.</p>
-</div>
-
-<dl>
- <dt id="xmlhttprequest-timeout">{{domxref("XMLHttpRequest.timeout")}}</dt>
- <dd>Egy <code>előjel nélküli egész szám</code>, amely megadja a várakozási időt (ezredmásodpercben) a kapcsolat automatikus lezárásig.</dd>
- <dt id="xmlhttprequesteventtarget-ontimeout">{{domxref("XMLHttpRequestEventTarget.ontimeout")}}</dt>
- <dd>Ez egy {{domxref("EventHandler")}} (eseménykezelő), amely a {{domxref("XMLHttpRequest.timeout")}} tulajdonságban megadott idő túllépése esetén mindig meghívódik. {{gecko_minversion_inline("12.0")}}
- <pre class="brush: js">xhr.timeout = 4000; //Időtúllépés beállítása 4 másodpercre
-xhr.ontimeout = function () { alert("Időtúllépés!!!"); }
-/* Időtúllépés esetén az eseménykezelő egy névtelen
- függvényt hív meg, amely egy felugró ablakban tájékoztatja
- a felhasználót az időtúllépésről */
- </pre>
- </dd>
- <dt id="xmlhttprequest-upload">{{domxref("XMLHttpRequest.upload")}} {{readonlyinline}}</dt>
- <dd>Minden XMLHttpRequest objektumhoz rendelkezik egy {{domxref("XMLHttpRequestUpload")}} objektummal, amely adatátviteli információk összegyűjtésére használható, amikor az adatok átkerülnek a kiszolgálóra. Az <code>upload</code> tulajdonság ezt adja vissza.</dd>
- <dt id="xmlhttprequest-withcredentials">{{domxref("XMLHttpRequest.withCredentials")}}</dt>
- <dd>Logikai érték ({{domxref("Boolean")}}), that indicates whether or not cross-site <code>Access-Control</code> requests should be made using credentials such as cookies or authorization headers.</dd>
-</dl>
-
-<h3 id="Nem_szabványos_tulajdonságok">Nem szabványos tulajdonságok</h3>
-
-<dl>
- <dt>{{domxref("XMLHttpRequest.channel")}}{{ReadOnlyInline}}</dt>
- <dd>Is a {{Interface("nsIChannel")}}. The channel used by the object when performing the request.</dd>
- <dt>{{domxref("XMLHttpRequest.mozAnon")}}{{ReadOnlyInline}}</dt>
- <dd>Logikai érték ({{domxref("Boolean")}}). Ha értéke igaz (true), akkor a kérelem sütik és azonosító fejlécek nélkül lesz elküldve.</dd>
- <dt>{{domxref("XMLHttpRequest.mozSystem")}}{{ReadOnlyInline}}</dt>
- <dd>Logikai érték ({{domxref("Boolean")}}). If true, the same origin policy will not be enforced on the request.</dd>
- <dt>{{domxref("XMLHttpRequest.mozBackgroundRequest")}}</dt>
- <dd>Logikai érték ({{domxref("Boolean")}}). It indicates whether or not the object represents a background service request.</dd>
- <dt>{{domxref("XMLHttpRequest.mozResponseArrayBuffer")}}{{gecko_minversion_inline("2.0")}} {{obsolete_inline("6")}} {{ReadOnlyInline}}</dt>
- <dd>Egy <code><a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer">ArrayBuffer</a> </code> objektum. A válasz a kérelemre egy JavaScript-stílusú tömb lesz.</dd>
- <dt>{{domxref("XMLHttpRequest.multipart")}}{{obsolete_inline("22")}}</dt>
- <dd><strong>This Gecko-only feature, a boolean, was removed in Firefox/Gecko 22.</strong> Please use <a href="/en-US/docs/Web/API/Server-sent_events">Server-Sent Events</a>, <a href="/en-US/docs/Web/API/WebSockets_API">Web Sockets</a>, or <code>responseText</code> from progress events instead.</dd>
-</dl>
-
-<h3 id="Eseménykezelők">Eseménykezelők</h3>
-
-<p>Az <code>onreadystatechange</code> az <code>XMLHttpRequest</code> objektum olyan tulajdonsága, amely mindig meghívódik, amikor a <code>readyState</code> tulajdonság értéke megváltozik. Ezt az eseménykezelőt az összes böngésző támogatja.</p>
-
-<p>A különböző böngészők által támogatott eseménykezelők száma egyre nagyobb (<code>onload</code>, <code>onerror</code>, <code>onprogress</code>, stb.). Ezeket a Firefox is mind támogatja. További információk az <code><a href="https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIXMLHttpRequestEventTarget" title="">nsIXMLHttpRequestEventTarget</a></code> objektumról és az <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest">XMLHttpRequest</a> használatáról.</p>
-
-<p>Az újabb böngészők (mint a Firefox is), támogatják az <code>XMLHttpRequest</code> események szabványos <code><a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a></code> általi figyelését. Az <a href="https://developer.mozilla.org/hu/docs/Web/Reference/API">API</a> ezen felül bekapcsolt (<code>on*</code>) értékre állítja a tulajdonságokat a kezelő függvényben.</p>
-
-<h2 id="Metódusok">Metódusok</h2>
-
-<dl>
- <dt>{{domxref("XMLHttpRequest.abort()")}}</dt>
- <dd>Megszakítja az aktuális kérelmet.</dd>
- <dt>{{domxref("XMLHttpRequest.getAllResponseHeaders()")}}</dt>
- <dd>A válasz összes fejlécét adja vissza egyszerű szövegként, <code>\r\n</code> (<a href="https://developer.mozilla.org/en-US/docs/Glossary/CRLF">CRLF</a>) sorvég karakterekkel elválasztva. Ha nem érkezett válasz a kérelemre, <code>null</code> értékkel tér vissza.</dd>
- <dt>{{domxref("XMLHttpRequest.getResponseHeader()")}}</dt>
- <dd>A paraméterül kapott fejléc szöveges értékével tér vissza siker esetén, vagy <code>null</code>-al, ha nem érkezett válasz a kérelemre vagy a kért fejléc nem található a válaszban.
- <pre class="brush: js"> xhr.getResponseHeader("Content-Type");
- </pre>
- </dd>
- <dt>{{domxref("XMLHttpRequest.open()")}}</dt>
- <dd>Inicializálja az elküldendő kérelmet. Beállítja a kérelem továbbítására használt metódust (ez lehet post vagy get), a cél URL-t (a kérelmet fogadó/feldolgozó távoli állomány elérési útját) és az aszinkron kapcsolót (true = aszinkron[alapértelmezett], false = szinkron). Opcionálisan megadható paraméterek: felhasználónév és jelszó. Ezt az eljárást JavaScript kódból lehet meghívni, natív kódból az <a class="internal" href="/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIXMLHttpRequest#openRequest()"><code>openRequest()</code></a> eljárás ajánlott helyette.
- <pre class="brush: js"> xhr.open("POST","feldolgoz.php", true);
- </pre>
- </dd>
- <dt>{{domxref("XMLHttpRequest.overrideMimeType()")}}</dt>
- <dd>Felülbírálja a kiszolgáló által visszaadott MIME típust.</dd>
- <dt>{{domxref("XMLHttpRequest.send()")}}</dt>
- <dd>Kérelem elküldése. Ha a kérelem aszinkron (ez az alapértelmezett), az eljárás visszatér, amint a kérelem el lett küldve.</dd>
- <dt>{{domxref("XMLHttpRequest.setRequestHeader()")}}</dt>
- <dd>A post metódussal elküldött HTTP kérelem fejlécét állítja be. Két bemeneti paramétert vár: a fejléc nevét és értékét. A <code>setRequestHeader()</code> eljárást az <a href="#open"><code>open()</code></a> után, de a <code>send()</code> előtt kell meghívni.
- <pre class="brush: js"> xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- </pre>
- </dd>
-</dl>
-
-<h3 id="Nem_szabványos_metódusok">Nem szabványos metódusok</h3>
-
-<dl>
- <dt>{{domxref("XMLHttpRequest.init()")}}</dt>
- <dd>C++ kódból történő használatra inicializálja az objektumot.</dd>
-</dl>
-
-<div class="warning"><strong>Figyelmeztetés:</strong> Ezt a metódust <em>nem</em> szabad JavaScript-ből meghívni.</div>
-
-<dl>
- <dt>{{domxref("XMLHttpRequest.openRequest()")}}</dt>
- <dd>Inicializálja a kérelmet. Ezt az eljárást natív kódból lehet használni a kérelem inicializálására, az <a class="internal" href="/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIXMLHttpRequest#open()"><code>open()</code></a> helyett. További részletek az <code>open()</code> leírásában.</dd>
- <dt>{{domxref("XMLHttpRequest.sendAsBinary()")}}{{deprecated_inline()}}</dt>
- <dd>A <code>send()</code> egy változata, ami bináris adatokat küld.</dd>
-</dl>
-
-<h2 id="Specifikációk">Specifikációk</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specifikáció</th>
- <th scope="col">Állapot</th>
- <th scope="col">Megjegyzés</th>
- </tr>
- <tr>
- <td>{{SpecName('XMLHttpRequest')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>Hatályos szabvány, aktuális változat</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Böngésző_támogatottság">Böngésző támogatottság</h2>
-
-
-
-<div>{{Compat("api.XMLHttpRequest")}}</div>
-
-<h2 id="Hivatkozások">Hivatkozások</h2>
-
-<ul>
- <li>MDN útmutatók az XMLHttpRequest-hez (angol):
- <ul>
- <li><a href="/en-US/docs/AJAX/Getting_Started">Ajax — fogjunk hozzá</a></li>
- <li><a href="/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest">Az XMLHttpRequest használata</a></li>
- <li><a href="/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest">HTML az XMLHttpRequest-ben</a></li>
- <li><a href="/en-US/docs/Web/API/FormData"><code>FormData</code></a></li>
- </ul>
- </li>
- <li><a class="external" href="http://www.html5rocks.com/en/tutorials/file/xhr2/">HTML5 Rocks — Új trükkök az XMLHttpRequest2-ben</a></li>
- <li><a href="https://www.w3schools.com/xml/ajax_xmlhttprequest_create.asp">The XMLHttpRequest Object</a></li>
- <li><a href="https://www.xul.fr/en-xml-ajax.html#request-step-by-step">Kérelem létrehozása lépésről lépésre</a></li>
- <li><code>Chrome scope availability</code> — hozzáférés az XMLHttpRequest-hez JSM modulokból, amelyek nem rendelkeznek DOM-hozzáféréssel (angol)
- <ul>
- <li><a href="/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.importGlobalProperties">Components.utils.importGlobalProperties</a></li>
- <li><a href="/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIXMLHttpRequest">nsIXMLHttpRequest</a></li>
- </ul>
- </li>
- <li>Magyar nyelvű útmutatók, cikkek:
- <ul>
- <li><a href="https://hu.wikipedia.org/wiki/XMLHttpRequest">Wikipédia-szócikk</a></li>
- <li><a href="http://szit.hu/doku.php?id=oktatas:web:javascript:javascript_ajax">SzitWiki</a></li>
- <li><a href="http://bbkmoodle.bbksoft.hu/henger/kliens_server_web/ecceobs.eu/tananyag/wf2/lecke19_lap1.html#hiv6">Az XMLHttpRequest objektum</a></li>
- <li><a href="http://www.dotnetszeged.hu/mic/?p=1652">Webes alapok kutatása #4 (AJAX + JSON)</a></li>
- </ul>
- </li>
-</ul>
diff --git a/files/hu/web/api/xmlhttprequest/using_xmlhttprequest/index.html b/files/hu/web/api/xmlhttprequest/using_xmlhttprequest/index.html
deleted file mode 100644
index a3bf37c370..0000000000
--- a/files/hu/web/api/xmlhttprequest/using_xmlhttprequest/index.html
+++ /dev/null
@@ -1,792 +0,0 @@
----
-title: Az XMLHttpRequest használata
-slug: Web/API/XMLHttpRequest/Using_XMLHttpRequest
-tags:
- - AJAX
- - HTTP
- - XMLHttpRequest
-translation_of: Web/API/XMLHttpRequest/Using_XMLHttpRequest
-original_slug: Web/API/XMLHttpRequest/XMLHttpRequest_hasznalata
----
-<div>{{APIRef("XMLHttpRequest")}}</div>
-
-<p><span class="seoSummary">Ebben az útmutatóban azt fogjuk körüljárni, hogy miként használhatjuk az {{domxref("XMLHttpRequest")}} objektumot <a href="/en-US/docs/Web/HTTP">HTTP</a> kérelmek küldésére, annak érdekében, hogy adatokat cserélhessünk a webhely és a szerver között.</span></p>
-
-<p>Egy új HTTP kérelem elküldéséhez először hozzunk létre egy új <code>XMLHttpRequest</code> objektumot, nyissuk meg az URL-t, majd küldjük el a kérelmet. Az adatátvitel befejezése után, objektumunk hasznos információkkal szolgálhat, mint a válasz törzs vagy az eredmény <a href="/en-US/docs/Web/HTTP/Status">HTTP státusz</a> kódja.</p>
-
-<pre class="brush: js">function reqListener () {
- console.log(this.responseText);
-}
-
-var oReq = new XMLHttpRequest();
-oReq.addEventListener("load", reqListener);
-oReq.open("GET", "http://www.example.org/example.txt");
-oReq.send();</pre>
-
-<h2 id="Kérelem_típusok">Kérelem típusok</h2>
-
-<p>A request made via <code>XMLHttpRequest</code> can fetch the data in one of two ways, asynchronously or synchronously. The type of request is dictated by the optional <code>async</code> argument (the third argument) that is set on the {{domxref("XMLHttpRequest.open()")}} method. If this argument is <code>true</code> or not specified, the <code>XMLHttpRequest</code> is processed asynchronously, otherwise the process is handled synchronously. A detailed discussion and demonstrations of these two types of requests can be found on the <a href="/en-US/docs/DOM/XMLHttpRequest/Synchronous_and_Asynchronous_Requests">synchronous and asynchronous requests</a> page. Do not use synchronous requests outside Web Workers.</p>
-
-<div class="note"><strong>Note:</strong> Starting with Gecko 30.0 {{ geckoRelease("30.0") }}, synchronous requests on the main thread have been deprecated due to the negative effects to the user experience.</div>
-
-<div class="note"><strong>Note:</strong> The constructor function <code>XMLHttpRequest</code> isn't limited to only XML documents. It starts with <strong>"XML"</strong> because when it was created the main format that was originally used for Asynchronous Data Exchange were XML</div>
-
-<h2 id="Válasz_kezelés">Válasz kezelés</h2>
-
-<p>There are several types of <a href="https://xhr.spec.whatwg.org/">response attributes</a> defined by the living standard specification for the {{domxref("XMLHttpRequest.XMLHttpRequest", "XMLHttpRequest()")}} constructor. These tell the client making the <code>XMLHttpRequest</code> important information about the status of the response. Some cases where dealing with non-text response types may involve some manipulation and analysis are outlined in the following sections.</p>
-
-<h3 id="Analyzing_and_manipulating_the_responseXML_property">Analyzing and manipulating the <code>responseXML</code> property</h3>
-
-<p>If you use <code>XMLHttpRequest</code> to get the content of a remote XML document, the {{domxref("XMLHttpRequest.responseXML", "responseXML")}} property will be a DOM object containing a parsed XML document. This could prove difficult to manipulate and analyze. There are four primary ways of analyzing this XML document:</p>
-
-<ol>
- <li>Using <a href="/en-US/docs/Web/XPath">XPath</a> to address (or point to) parts of it.</li>
- <li>Manually <a href="/en-US/docs/Web/Guide/Parsing_and_serializing_XML">Parsing and serializing XML</a> to strings or objects.</li>
- <li>Using {{domxref("XMLSerializer")}} to serialize <strong>DOM trees to strings or to files</strong>.</li>
- <li>{{jsxref("RegExp")}} can be used if you always know the content of the XML document beforehand. You might want to remove line breaks, if you use <code>RegExp</code> to scan with regard to line breaks. However, this method is a "last resort" since if the XML code changes slightly, the method will likely fail.</li>
-</ol>
-
-<div class="note">
-<p><strong>Note:</strong> <code>XMLHttpRequest</code> can now interpret HTML for you using the {{domxref("XMLHttpRequest.responseXML", "responseXML")}} property. Read the article about <a href="/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest">HTML in XMLHttpRequest</a> to learn how to do this.</p>
-</div>
-
-<h3 id="Processing_a_responseText_property_containing_an_HTML_document">Processing a <code>responseText</code> property containing an HTML document</h3>
-
-<p>If you use <code>XMLHttpRequest</code> to get the content of a remote HTML webpage, the {{domxref("XMLHttpRequest.responseText", "responseText")}} property is a string containing the raw HTML. This could prove difficult to manipulate and analyze. There are three primary ways to analyze and parse this raw HTML string:</p>
-
-<ol>
- <li>Use the <code>XMLHttpRequest.responseXML</code> property as covered in the article <a href="/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest">HTML in XMLHttpRequest</a>.</li>
- <li>Inject the content into the body of a <a href="/en-US/docs/Web/API/DocumentFragment">document fragment</a> via <code>fragment.body.innerHTML</code> and traverse the DOM of the fragment.</li>
- <li>{{jsxref("RegExp")}} can be used if you always know the content of the HTML <code>responseText</code> beforehand. You might want to remove line breaks, if you use RegExp to scan with regard to linebreaks. However, this method is a "last resort" since if the HTML code changes slightly, the method will likely fail.</li>
-</ol>
-
-<h2 id="Bináris_adatok_kezelése">Bináris adatok kezelése</h2>
-
-<p>Although {{domxref("XMLHttpRequest")}} is most commonly used to send and receive textual data, it can be used to send and receive binary content. There are several well tested methods for coercing the response of an <code>XMLHttpRequest</code> into sending binary data. These involve utilizing the {{domxref("XMLHttpRequest.overrideMimeType", "overrideMimeType()")}} method on the <code>XMLHttpRequest</code> object and is a workable solution.</p>
-
-<pre class="brush:js">var oReq = new XMLHttpRequest();
-oReq.open("GET", url);
-// retrieve data unprocessed as a binary string
-oReq.overrideMimeType("text/plain; charset=x-user-defined");
-/* ... */
-</pre>
-
-<p>However, more modern techniques are available, since the {{domxref("XMLHttpRequest.responseType", "responseType")}} attribute now supports a number of additional content types, which makes sending and receiving binary data much easier.</p>
-
-<p>For example, consider this snippet, which uses the <code>responseType</code> of <code>"arraybuffer"</code> to fetch the remote content into a {{jsxref("ArrayBuffer")}} object, which stores the raw binary data.</p>
-
-<pre class="brush:js">var oReq = new XMLHttpRequest();
-
-oReq.onload = function(e) {
- var arraybuffer = oReq.response; // not responseText
- /* ... */
-}
-oReq.open("GET", url);
-oReq.responseType = "arraybuffer";
-oReq.send();</pre>
-
-<p>For more examples check out the <a href="/en-US/docs/DOM/XMLHttpRequest/Sending_and_Receiving_Binary_Data">Sending and Receiving Binary Data</a> page</p>
-
-<h2 id="Folyamatok_nyomonkövetése">Folyamatok nyomonkövetése</h2>
-
-<p><code>XMLHttpRequest</code> provides the ability to listen to various events that can occur while the request is being processed. This includes periodic progress notifications, error notifications, and so forth.</p>
-
-<p>Support for DOM {{event("progress")}} event monitoring of <code>XMLHttpRequest</code> transfers follows the <a href="https://xhr.spec.whatwg.org/#interface-progressevent">specification for progress events</a>: these events implement the {{domxref("ProgressEvent")}} interface. The actual events you can monitor to determine the state of an ongoing transfer are:</p>
-
-<dl>
- <dt>{{event("progress")}}</dt>
- <dd>The amount of data that has been retrieved has changed.</dd>
- <dt>{{event("load")}}</dt>
- <dd>The transfer is complete; all data is now in the <code>response</code></dd>
-</dl>
-
-<pre class="brush:js">var oReq = new XMLHttpRequest();
-
-oReq.addEventListener("progress", updateProgress);
-oReq.addEventListener("load", transferComplete);
-oReq.addEventListener("error", transferFailed);
-oReq.addEventListener("abort", transferCanceled);
-
-oReq.open();
-
-// ...
-
-// progress on transfers from the server to the client (downloads)
-function updateProgress (oEvent) {
- if (oEvent.lengthComputable) {
- var percentComplete = oEvent.loaded / oEvent.total * 100;
- // ...
- } else {
- // Unable to compute progress information since the total size is unknown
- }
-}
-
-function transferComplete(evt) {
- console.log("The transfer is complete.");
-}
-
-function transferFailed(evt) {
- console.log("An error occurred while transferring the file.");
-}
-
-function transferCanceled(evt) {
- console.log("The transfer has been canceled by the user.");
-}</pre>
-
-<p>Lines 3-6 add event listeners for the various events that are sent while performing a data transfer using <code>XMLHttpRequest</code>.</p>
-
-<div class="note"><strong>Note:</strong> You need to add the event listeners before calling <code>open()</code> on the request. Otherwise the <code>progress</code> events will not fire.</div>
-
-<p>The progress event handler, specified by the <code>updateProgress()</code> function in this example, receives the total number of bytes to transfer as well as the number of bytes transferred so far in the event's <code>total</code> and <code>loaded</code> fields. However, if the <code>lengthComputable</code> field is false, the total length is not known and will be zero.</p>
-
-<p>Progress events exist for both download and upload transfers. The download events are fired on the <code>XMLHttpRequest</code> object itself, as shown in the above sample. The upload events are fired on the <code>XMLHttpRequest.upload</code> object, as shown below:</p>
-
-<pre class="brush:js">var oReq = new XMLHttpRequest();
-
-oReq.upload.addEventListener("progress", updateProgress);
-oReq.upload.addEventListener("load", transferComplete);
-oReq.upload.addEventListener("error", transferFailed);
-oReq.upload.addEventListener("abort", transferCanceled);
-
-oReq.open();
-</pre>
-
-<div class="note"><strong>Note:</strong> Progress events are not available for the <code>file:</code> protocol.</div>
-
-<div class="note">
-<p><strong>Note:</strong> Starting in {{Gecko("9.0")}}, progress events can now be relied upon to come in for every chunk of data received, including the last chunk in cases in which the last packet is received and the connection closed before the progress event is fired. In this case, the progress event is automatically fired when the load event occurs for that packet. This lets you now reliably monitor progress by only watching the "progress" event.</p>
-</div>
-
-<div class="note">
-<p><strong>Note:</strong> As of {{Gecko("12.0")}}, if your progress event is called with a <code>responseType</code> of "moz-blob", the value of response is a {{domxref("Blob")}} containing the data received so far.</p>
-</div>
-
-<p>One can also detect all three load-ending conditions (<code>abort</code>, <code>load</code>, or <code>error</code>) using the <code>loadend</code> event:</p>
-
-<pre class="brush:js">req.addEventListener("loadend", loadEnd);
-
-function loadEnd(e) {
- console.log("The transfer finished (although we don't know if it succeeded or not).");
-}
-</pre>
-
-<p>Note there is no way to be certain, from the information received by the <code>loadend</code> event, as to which condition caused the operation to terminate; however, you can use this to handle tasks that need to be performed in all end-of-transfer scenarios.</p>
-
-<h2 id="Űrlapok_küldése_és_állományok_feltöltése">Űrlapok küldése és állományok feltöltése</h2>
-
-<p>Instances of <code>XMLHttpRequest</code> can be used to submit forms in two ways:</p>
-
-<ul>
- <li>using only AJAX</li>
- <li>using the {{domxref("XMLHttpRequest.FormData", "FormData")}} API</li>
-</ul>
-
-<p>Using the <code>FormData</code> API is the simplest and fastest, but has the disadvantage that data collected can not be <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify">stringified</a>.<br>
- Using only AJAX is more complex, but typically more flexible and powerful.</p>
-
-<h3 id="Using_nothing_but_XMLHttpRequest">Using nothing but <code>XMLHttpRequest</code></h3>
-
-<p>Submitting forms without the <code>FormData</code> API does not require other APIs for most use cases. The only case where you need an additional API is <strong>if you want to upload one or more files</strong>, where you use the {{domxref("FileReader")}} API.</p>
-
-<h4 id="A_brief_introduction_to_the_submit_methods">A brief introduction to the submit methods</h4>
-
-<p>An html {{ HTMLElement("form") }} can be sent in four ways:</p>
-
-<ul>
- <li>using the <code>POST</code> method and setting the <code>enctype</code> attribute to <code>application/x-www-form-urlencoded</code> (default);</li>
- <li>using the <code>POST</code> method and setting the <code>enctype</code> attribute to <code>text/plain</code>;</li>
- <li>using the <code>POST</code> method and setting the <code>enctype</code> attribute to <code>multipart/form-data</code>;</li>
- <li>using the <code>GET</code> method (in this case the <code>enctype</code> attribute will be ignored).</li>
-</ul>
-
-<p>Now, consider the submission of a form containing only two fields, named <code>foo</code> and <code>baz</code>. If you are using the <code>POST</code> method the server will receive a string similar to one of the following three examples, depending on the encoding type you are using:</p>
-
-<ul>
- <li>
- <p>Method: <code>POST</code>; Encoding type: <code>application/x-www-form-urlencoded</code> (default):</p>
-
- <pre class="brush:plain">Content-Type: application/x-www-form-urlencoded
-
-foo=bar&amp;baz=The+first+line.%0D%0AThe+second+line.%0D%0A</pre>
- </li>
- <li>
- <p>Method: <code>POST</code>; Encoding type: <code>text/plain</code>:</p>
-
- <pre class="brush:plain">Content-Type: text/plain
-
-foo=bar
-baz=The first line.
-The second line.</pre>
- </li>
- <li>
- <p>Method: <code>POST</code>; Encoding type: <code><a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#multipartform-data">multipart/form-data</a></code>:</p>
-
- <pre class="brush:plain">Content-Type: multipart/form-data; boundary=---------------------------314911788813839
-
------------------------------314911788813839
-Content-Disposition: form-data; name="foo"
-
-bar
------------------------------314911788813839
-Content-Disposition: form-data; name="baz"
-
-The first line.
-The second line.
-
------------------------------314911788813839--</pre>
- </li>
-</ul>
-
-<p>However, if you are using the <code>GET</code> method, a string like the following will be simply added to the URL:</p>
-
-<pre class="brush:plain">?foo=bar&amp;baz=The%20first%20line.%0AThe%20second%20line.</pre>
-
-<h4 id="A_little_vanilla_framework">A little vanilla framework</h4>
-
-<p>All these effects are done automatically by the web browser whenever you submit a {{HTMLElement("form")}}. If you want to perform the same effects using JavaScript you have to instruct the interpreter about <em>everything</em>. Therefore, how to send forms in <em>pure</em> AJAX is too complex to be explained here in detail. For this reason, here we place <strong>a complete (yet didactic) framework</strong>, able to use all four ways to <em>submit</em>, and to <strong>upload files</strong>:</p>
-
-<div style="height: 400px; margin-bottom: 12px; overflow: auto;">
-<pre class="brush: html">&lt;!doctype html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
-&lt;title&gt;Sending forms with pure AJAX &amp;ndash; MDN&lt;/title&gt;
-&lt;script type="text/javascript"&gt;
-
-"use strict";
-
-/*\
-|*|
-|*| :: XMLHttpRequest.prototype.sendAsBinary() Polyfill ::
-|*|
-|*| https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#sendAsBinary()
-\*/
-
-if (!XMLHttpRequest.prototype.sendAsBinary) {
- XMLHttpRequest.prototype.sendAsBinary = function(sData) {
- var nBytes = sData.length, ui8Data = new Uint8Array(nBytes);
- for (var nIdx = 0; nIdx &lt; nBytes; nIdx++) {
- ui8Data[nIdx] = sData.charCodeAt(nIdx) &amp; 0xff;
- }
- /* send as ArrayBufferView...: */
- this.send(ui8Data);
- /* ...or as ArrayBuffer (legacy)...: this.send(ui8Data.buffer); */
- };
-}
-
-/*\
-|*|
-|*| :: AJAX Form Submit Framework ::
-|*|
-|*| https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest
-|*|
-|*| This framework is released under the GNU Public License, version 3 or later.
-|*| https://www.gnu.org/licenses/gpl-3.0-standalone.html
-|*|
-|*| Syntax:
-|*|
-|*| AJAXSubmit(HTMLFormElement);
-\*/
-
-var AJAXSubmit = (function () {
-
- function ajaxSuccess () {
- /* console.log("AJAXSubmit - Success!"); */
- console.log(this.responseText);
- /* you can get the serialized data through the "submittedData" custom property: */
- /* console.log(JSON.stringify(this.submittedData)); */
- }
-
- function submitData (oData) {
- /* the AJAX request... */
- var oAjaxReq = new XMLHttpRequest();
- oAjaxReq.submittedData = oData;
- oAjaxReq.onload = ajaxSuccess;
- if (oData.technique === 0) {
- /* method is GET */
- oAjaxReq.open("get", oData.receiver.replace(/(?:\?.*)?$/,
- oData.segments.length &gt; 0 ? "?" + oData.segments.join("&amp;") : ""), true);
- oAjaxReq.send(null);
- } else {
- /* method is POST */
- oAjaxReq.open("post", oData.receiver, true);
- if (oData.technique === 3) {
- /* enctype is multipart/form-data */
- var sBoundary = "---------------------------" + Date.now().toString(16);
- oAjaxReq.setRequestHeader("Content-Type", "multipart\/form-data; boundary=" + sBoundary);
- oAjaxReq.sendAsBinary("--" + sBoundary + "\r\n" +
- oData.segments.join("--" + sBoundary + "\r\n") + "--" + sBoundary + "--\r\n");
- } else {
- /* enctype is application/x-www-form-urlencoded or text/plain */
- oAjaxReq.setRequestHeader("Content-Type", oData.contentType);
- oAjaxReq.send(oData.segments.join(oData.technique === 2 ? "\r\n" : "&amp;"));
- }
- }
- }
-
- function processStatus (oData) {
- if (oData.status &gt; 0) { return; }
- /* the form is now totally serialized! do something before sending it to the server... */
- /* doSomething(oData); */
- /* console.log("AJAXSubmit - The form is now serialized. Submitting..."); */
- submitData (oData);
- }
-
- function pushSegment (oFREvt) {
- this.owner.segments[this.segmentIdx] += oFREvt.target.result + "\r\n";
- this.owner.status--;
- processStatus(this.owner);
- }
-
- function plainEscape (sText) {
- /* How should I treat a text/plain form encoding?
- What characters are not allowed? this is what I suppose...: */
- /* "4\3\7 - Einstein said E=mc2" ----&gt; "4\\3\\7\ -\ Einstein\ said\ E\=mc2" */
- return sText.replace(/[\s\=\\]/g, "\\$&amp;");
- }
-
- function SubmitRequest (oTarget) {
- var nFile, sFieldType, oField, oSegmReq, oFile, bIsPost = oTarget.method.toLowerCase() === "post";
- /* console.log("AJAXSubmit - Serializing form..."); */
- this.contentType = bIsPost &amp;&amp; oTarget.enctype ? oTarget.enctype : "application\/x-www-form-urlencoded";
- this.technique = bIsPost ?
- this.contentType === "multipart\/form-data" ? 3 : this.contentType === "text\/plain" ? 2 : 1 : 0;
- this.receiver = oTarget.action;
- this.status = 0;
- this.segments = [];
- var fFilter = this.technique === 2 ? plainEscape : escape;
- for (var nItem = 0; nItem &lt; oTarget.elements.length; nItem++) {
- oField = oTarget.elements[nItem];
- if (!oField.hasAttribute("name")) { continue; }
- sFieldType = oField.nodeName.toUpperCase() === "INPUT" ? oField.getAttribute("type").toUpperCase() : "TEXT";
- if (sFieldType === "FILE" &amp;&amp; oField.files.length &gt; 0) {
- if (this.technique === 3) {
- /* enctype is multipart/form-data */
- for (nFile = 0; nFile &lt; oField.files.length; nFile++) {
- oFile = oField.files[nFile];
- oSegmReq = new FileReader();
- /* (custom properties:) */
- oSegmReq.segmentIdx = this.segments.length;
- oSegmReq.owner = this;
- /* (end of custom properties) */
- oSegmReq.onload = pushSegment;
- this.segments.push("Content-Disposition: form-data; name=\"" +
- oField.name + "\"; filename=\"" + oFile.name +
- "\"\r\nContent-Type: " + oFile.type + "\r\n\r\n");
- this.status++;
- oSegmReq.readAsBinaryString(oFile);
- }
- } else {
- /* enctype is application/x-www-form-urlencoded or text/plain or
- method is GET: files will not be sent! */
- for (nFile = 0; nFile &lt; oField.files.length;
- this.segments.push(fFilter(oField.name) + "=" + fFilter(oField.files[nFile++].name)));
- }
- } else if ((sFieldType !== "RADIO" &amp;&amp; sFieldType !== "CHECKBOX") || oField.checked) {
-  /* NOTE: this will submit _all_ submit buttons. Detecting the correct one is non-trivial. */
- /* field type is not FILE or is FILE but is empty */
- this.segments.push(
- this.technique === 3 ? /* enctype is multipart/form-data */
- "Content-Disposition: form-data; name=\"" + oField.name + "\"\r\n\r\n" + oField.value + "\r\n"
- : /* enctype is application/x-www-form-urlencoded or text/plain or method is GET */
- fFilter(oField.name) + "=" + fFilter(oField.value)
- );
- }
- }
- processStatus(this);
- }
-
- return function (oFormElement) {
- if (!oFormElement.action) { return; }
- new SubmitRequest(oFormElement);
- };
-
-})();
-
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-
-&lt;h1&gt;Sending forms with pure AJAX&lt;/h1&gt;
-
-&lt;h2&gt;Using the GET method&lt;/h2&gt;
-
-&lt;form action="register.php" method="get" onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Registration example&lt;/legend&gt;
- &lt;p&gt;
- First name: &lt;input type="text" name="firstname" /&gt;&lt;br /&gt;
- Last name: &lt;input type="text" name="lastname" /&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-
-&lt;h2&gt;Using the POST method&lt;/h2&gt;
-&lt;h3&gt;Enctype: application/x-www-form-urlencoded (default)&lt;/h3&gt;
-
-&lt;form action="register.php" method="post" onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Registration example&lt;/legend&gt;
- &lt;p&gt;
- First name: &lt;input type="text" name="firstname" /&gt;&lt;br /&gt;
- Last name: &lt;input type="text" name="lastname" /&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-
-&lt;h3&gt;Enctype: text/plain&lt;/h3&gt;
-
-&lt;form action="register.php" method="post" enctype="text/plain"
- onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Registration example&lt;/legend&gt;
- &lt;p&gt;
- Your name: &lt;input type="text" name="user" /&gt;
- &lt;/p&gt;
- &lt;p&gt;
- Your message:&lt;br /&gt;
- &lt;textarea name="message" cols="40" rows="8"&gt;&lt;/textarea&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-
-&lt;h3&gt;Enctype: multipart/form-data&lt;/h3&gt;
-
-&lt;form action="register.php" method="post" enctype="multipart/form-data"
- onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Upload example&lt;/legend&gt;
- &lt;p&gt;
- First name: &lt;input type="text" name="firstname" /&gt;&lt;br /&gt;
- Last name: &lt;input type="text" name="lastname" /&gt;&lt;br /&gt;
- Sex:
- &lt;input id="sex_male" type="radio" name="sex" value="male" /&gt;
- &lt;label for="sex_male"&gt;Male&lt;/label&gt;
- &lt;input id="sex_female" type="radio" name="sex" value="female" /&gt;
- &lt;label for="sex_female"&gt;Female&lt;/label&gt;&lt;br /&gt;
- Password: &lt;input type="password" name="secret" /&gt;&lt;br /&gt;
- What do you prefer:
- &lt;select name="image_type"&gt;
- &lt;option&gt;Books&lt;/option&gt;
- &lt;option&gt;Cinema&lt;/option&gt;
- &lt;option&gt;TV&lt;/option&gt;
- &lt;/select&gt;
- &lt;/p&gt;
- &lt;p&gt;
- Post your photos:
- &lt;input type="file" multiple name="photos[]"&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input id="vehicle_bike" type="checkbox" name="vehicle[]" value="Bike" /&gt;
- &lt;label for="vehicle_bike"&gt;I have a bike&lt;/label&gt;&lt;br /&gt;
- &lt;input id="vehicle_car" type="checkbox" name="vehicle[]" value="Car" /&gt;
- &lt;label for="vehicle_car"&gt;I have a car&lt;/label&gt;
- &lt;/p&gt;
- &lt;p&gt;
- Describe yourself:&lt;br /&gt;
- &lt;textarea name="description" cols="50" rows="8"&gt;&lt;/textarea&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;</pre>
-</div>
-
-<p>To test this, create a page named <strong>register.php</strong> (which is the <code>action</code> attribute of these sample forms), and put the following <em>minimalistic</em> content:</p>
-
-<pre class="brush: php">&lt;?php
-/* register.php */
-
-header("Content-type: text/plain");
-
-/*
-NOTE: You should never use `print_r()` in production scripts, or
-otherwise output client-submitted data without sanitizing it first.
-Failing to sanitize can lead to cross-site scripting vulnerabilities.
-*/
-
-echo ":: data received via GET ::\n\n";
-print_r($_GET);
-
-echo "\n\n:: Data received via POST ::\n\n";
-print_r($_POST);
-
-echo "\n\n:: Data received as \"raw\" (text/plain encoding) ::\n\n";
-if (isset($HTTP_RAW_POST_DATA)) { echo $HTTP_RAW_POST_DATA; }
-
-echo "\n\n:: Files received ::\n\n";
-print_r($_FILES);
-
-</pre>
-
-<p>The syntax to activate this script is simply:</p>
-
-<pre class="syntaxbox">AJAXSubmit(myForm);</pre>
-
-<div class="note"><strong>Note:</strong> This framework uses the {{domxref("FileReader")}} API to transmit file uploads. This is a recent API and is not implemented in IE9 or below. For this reason, the AJAX-only upload is considered <strong>an experimental technique</strong>. If you do not need to upload binary files, this framework works fine in most browsers.</div>
-
-<div class="note"><strong>Note:</strong> The best way to send binary content is via {{jsxref("ArrayBuffer", "ArrayBuffers")}} or {{domxref("Blob", "Blobs")}} in conjuncton with the {{domxref("XMLHttpRequest.send()", "send()")}} method and possibly the {{domxref("FileReader.readAsArrayBuffer()", "readAsArrayBuffer()")}} method of the <code>FileReader</code> API. But, since the aim of this script is to work with a <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify">stringifiable</a> raw data, we used the {{domxref("XMLHttpRequest.sendAsBinary()", "sendAsBinary()")}} method in conjunction with the {{domxref("FileReader.readAsBinaryString()", "readAsBinaryString()")}} method of the <code>FileReader</code> API. As such, the above script makes sense only when you are dealing with small files. If you do not intend to upload binary content, consider instead using the <code>FormData</code> API.</div>
-
-<div class="note"><strong>Note:</strong> The non-standard <code>sendAsBinary</code> method is considered deprecated as of Gecko 31 {{geckoRelease(31)}} and will be removed soon. The standard <code>send(Blob data)</code> method can be used instead.</div>
-
-<h3 id="Using_FormData_objects">Using FormData objects</h3>
-
-<p>The {{domxref("XMLHttpRequest.FormData", "FormData")}} constructor lets you compile a set of key/value pairs to send using <code>XMLHttpRequest</code>. Its primary use is in sending form data, but can also be used independently from a form in order to transmit user keyed data. The transmitted data is in the same format the form's <code>submit()</code> method uses to send data, if the form's encoding type were set to "multipart/form-data". FormData objects can be utilized in a number of ways with an <code>XMLHttpRequest</code>. For examples, and explanations of how one can utilize FormData with XMLHttpRequests, see the <a href="/en-US/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects">Using FormData Objects</a> page. For didactic purposes here is <strong>a <em>translation</em> of <a href="#A_little_vanilla_framework">the previous example</a> transformed to use the <code>FormData</code> API</strong>. Note the brevity of the code:</p>
-
-<div style="height: 400px; margin-bottom: 12px; overflow: auto;">
-<pre class="brush: html">&lt;!doctype html&gt;
-&lt;html&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" charset="UTF-8" /&gt;
-&lt;title&gt;Sending forms with FormData &amp;ndash; MDN&lt;/title&gt;
-&lt;script&gt;
-"use strict";
-
-function ajaxSuccess () {
- console.log(this.responseText);
-}
-
-function AJAXSubmit (oFormElement) {
- if (!oFormElement.action) { return; }
- var oReq = new XMLHttpRequest();
- oReq.onload = ajaxSuccess;
- if (oFormElement.method.toLowerCase() === "post") {
- oReq.open("post", oFormElement.action);
- oReq.send(new FormData(oFormElement));
- } else {
- var oField, sFieldType, nFile, sSearch = "";
- for (var nItem = 0; nItem &lt; oFormElement.elements.length; nItem++) {
- oField = oFormElement.elements[nItem];
- if (!oField.hasAttribute("name")) { continue; }
- sFieldType = oField.nodeName.toUpperCase() === "INPUT" ?
- oField.getAttribute("type").toUpperCase() : "TEXT";
- if (sFieldType === "FILE") {
- for (nFile = 0; nFile &lt; oField.files.length;
- sSearch += "&amp;" + escape(oField.name) + "=" + escape(oField.files[nFile++].name));
- } else if ((sFieldType !== "RADIO" &amp;&amp; sFieldType !== "CHECKBOX") || oField.checked) {
- sSearch += "&amp;" + escape(oField.name) + "=" + escape(oField.value);
- }
- }
- oReq.open("get", oFormElement.action.replace(/(?:\?.*)?$/, sSearch.replace(/^&amp;/, "?")), true);
- oReq.send(null);
- }
-}
-&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-
-&lt;h1&gt;Sending forms with FormData&lt;/h1&gt;
-
-&lt;h2&gt;Using the GET method&lt;/h2&gt;
-
-&lt;form action="register.php" method="get" onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Registration example&lt;/legend&gt;
- &lt;p&gt;
- First name: &lt;input type="text" name="firstname" /&gt;&lt;br /&gt;
- Last name: &lt;input type="text" name="lastname" /&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-
-&lt;h2&gt;Using the POST method&lt;/h2&gt;
-&lt;h3&gt;Enctype: application/x-www-form-urlencoded (default)&lt;/h3&gt;
-
-&lt;form action="register.php" method="post" onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Registration example&lt;/legend&gt;
- &lt;p&gt;
- First name: &lt;input type="text" name="firstname" /&gt;&lt;br /&gt;
- Last name: &lt;input type="text" name="lastname" /&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-
-&lt;h3&gt;Enctype: text/plain&lt;/h3&gt;
-
-&lt;p&gt;The text/plain encoding is not supported by the FormData API.&lt;/p&gt;
-
-&lt;h3&gt;Enctype: multipart/form-data&lt;/h3&gt;
-
-&lt;form action="register.php" method="post" enctype="multipart/form-data"
- onsubmit="AJAXSubmit(this); return false;"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;Upload example&lt;/legend&gt;
- &lt;p&gt;
- First name: &lt;input type="text" name="firstname" /&gt;&lt;br /&gt;
- Last name: &lt;input type="text" name="lastname" /&gt;&lt;br /&gt;
- Sex:
- &lt;input id="sex_male" type="radio" name="sex" value="male" /&gt;
- &lt;label for="sex_male"&gt;Male&lt;/label&gt;
- &lt;input id="sex_female" type="radio" name="sex" value="female" /&gt;
- &lt;label for="sex_female"&gt;Female&lt;/label&gt;&lt;br /&gt;
- Password: &lt;input type="password" name="secret" /&gt;&lt;br /&gt;
- What do you prefer:
- &lt;select name="image_type"&gt;
- &lt;option&gt;Books&lt;/option&gt;
- &lt;option&gt;Cinema&lt;/option&gt;
- &lt;option&gt;TV&lt;/option&gt;
- &lt;/select&gt;
- &lt;/p&gt;
- &lt;p&gt;
- Post your photos:
- &lt;input type="file" multiple name="photos[]"&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input id="vehicle_bike" type="checkbox" name="vehicle[]" value="Bike" /&gt;
- &lt;label for="vehicle_bike"&gt;I have a bike&lt;/label&gt;&lt;br /&gt;
- &lt;input id="vehicle_car" type="checkbox" name="vehicle[]" value="Car" /&gt;
- &lt;label for="vehicle_car"&gt;I have a car&lt;/label&gt;
- &lt;/p&gt;
- &lt;p&gt;
- Describe yourself:&lt;br /&gt;
- &lt;textarea name="description" cols="50" rows="8"&gt;&lt;/textarea&gt;
- &lt;/p&gt;
- &lt;p&gt;
- &lt;input type="submit" value="Submit" /&gt;
- &lt;/p&gt;
- &lt;/fieldset&gt;
-&lt;/form&gt;
-&lt;/body&gt;
-&lt;/html&gt;</pre>
-</div>
-
-<div class="note"><strong>Note:</strong> As we said,<strong> {{domxref("FormData")}} objects are not <a href="/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify">stringifiable</a> objects</strong>. If you want to stringify a submitted data, use <a href="#A_little_vanilla_framework">the previous <em>pure</em>-AJAX example</a>. Note also that, although in this example there are some <code>file</code> {{ HTMLElement("input") }} fields, <strong>when you submit a form through the <code>FormData</code> API you do not need to use the {{domxref("FileReader")}} API also</strong>: files are automatically loaded and uploaded.</div>
-
-<h2 id="Utolsó_módosítás_dátuma">Utolsó módosítás dátuma</h2>
-
-<pre class="brush: js">function getHeaderTime () {
- console.log(this.getResponseHeader("Last-Modified")); /* A valid GMTString date or null */
-}
-
-var oReq = new XMLHttpRequest();
-oReq.open("HEAD" /* use HEAD if you only need the headers! */, "yourpage.html");
-oReq.onload = getHeaderTime;
-oReq.send();</pre>
-
-<h3 id="Do_something_when_last_modified_date_changes">Do something when last modified date changes</h3>
-
-<p>Let's create two functions:</p>
-
-<pre class="brush: js">function getHeaderTime () {
- var nLastVisit = parseFloat(window.localStorage.getItem('lm_' + this.filepath));
- var nLastModif = Date.parse(this.getResponseHeader("Last-Modified"));
-
- if (isNaN(nLastVisit) || nLastModif &gt; nLastVisit) {
- window.localStorage.setItem('lm_' + this.filepath, Date.now());
- isFinite(nLastVisit) &amp;&amp; this.callback(nLastModif, nLastVisit);
- }
-}
-
-function ifHasChanged(sURL, fCallback) {
- var oReq = new XMLHttpRequest();
- oReq.open("HEAD" /* use HEAD - we only need the headers! */, sURL);
- oReq.callback = fCallback;
- oReq.filepath = sURL;
- oReq.onload = getHeaderTime;
- oReq.send();
-}</pre>
-
-<p>And to test:</p>
-
-<pre class="brush: js">/* Let's test the file "yourpage.html"... */
-
-ifHasChanged("yourpage.html", function (nModif, nVisit) {
- console.log("The page '" + this.filepath + "' has been changed on " + (new Date(nModif)).toLocaleString() + "!");
-});</pre>
-
-<p>If you want to know <strong><em>if</em> <em>the current page</em> has changed</strong>, please read the article about {{domxref("document.lastModified")}}.</p>
-
-<h2 id="Webhelyközi_XMLHttpRequest">Webhelyközi XMLHttpRequest</h2>
-
-<p>Modern browsers support cross-site requests by implementing the <a href="/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource Sharing</a> (CORS) standard. As long as the server is configured to allow requests from your web application's origin, <code>XMLHttpRequest</code> will work. Otherwise, an <code>INVALID_ACCESS_ERR</code> exception is thrown.</p>
-
-<h2 id="Gyorsítótár_megkerülése">Gyorsítótár megkerülése</h2>
-
-<p>A cross-browser compatible approach to bypassing the cache is appending a timestamp to the URL, being sure to include a "?" or "&amp;" as appropriate. For example:</p>
-
-<pre class="brush:plain">http://foo.com/bar.html -&gt; http://foo.com/bar.html?12345
-http://foo.com/bar.html?foobar=baz -&gt; http://foo.com/bar.html?foobar=baz&amp;12345
-</pre>
-
-<p>As the local cache is indexed by URL, this causes every request to be unique, thereby bypassing the cache.</p>
-
-<p>You can automatically adjust URLs using the following code:</p>
-
-<pre class="brush:js">var oReq = new XMLHttpRequest();
-
-oReq.open("GET", url + ((/\?/).test(url) ? "&amp;" : "?") + (new Date()).getTime());
-oReq.send(null);</pre>
-
-<h2 id="Biztonság">Biztonság</h2>
-
-<p>{{fx_minversion_note(3, "Versions of Firefox prior to Firefox 3 allowed you to set the preference <code>capability.policy.&lt;policyname&gt;.XMLHttpRequest.open&lt;/policyname&gt;</code> to <code>allAccess</code> to give specific sites cross-site access. This is no longer supported.")}}</p>
-
-<p>{{fx_minversion_note(5, "Versions of Firefox prior to Firefox 5 could use <code>netscape.security.PrivilegeManager.enablePrivilege(\"UniversalBrowserRead\");</code> to request cross-site access. This is no longer supported, even though it produces no warning and permission dialog is still presented.")}}</p>
-
-<p>The recommended way to enable cross-site scripting is to use the <code>Access-Control-Allow-Origin</code> HTTP header in the response to the XMLHttpRequest.</p>
-
-<h3 id="XMLHttpRequests_being_stopped">XMLHttpRequests being stopped</h3>
-
-<p>If you conclude with an XMLHttpRequest receiving <code>status=0</code> and <code>statusText=null</code>, this means the request was not allowed to be performed. It was <code><a href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-unsent">UNSENT</a></code>. A likely cause for this is when the <a href="https://www.w3.org/TR/2010/CR-XMLHttpRequest-20100803/#xmlhttprequest-origin"><code>XMLHttpRequest</code> origin</a> (at the creation of the XMLHttpRequest) has changed when the XMLHttpRequest is subsequently <code>open()</code>. This case can happen, for example, when one has an XMLHttpRequest that gets fired on an onunload event for a window, the expected XMLHttpRequest is created when the window to be closed is still there, and finally sending the request (in otherwords, <code>open()</code>) when this window has lost its focus and another window gains focus. The most effective way to avoid this problem is to set a listener on the new window's {{event("activate")}} event which is set once the terminated window has its {{event("unload")}} event triggered.</p>
-
-<h2 id="Dolgozók">Dolgozók</h2>
-
-<p>Setting <code>overrideMimeType</code> does not work from a {{domxref("Worker")}}.  See {{bug(678057)}} for more details.  Other browsers may handle this differently.</p>
-
-<h2 id="Specifikációk">Specifikációk</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specifikáció</th>
- <th scope="col">Állapot</th>
- <th scope="col">Megjegyzés</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('XMLHttpRequest')}}</td>
- <td>{{Spec2('XMLHttpRequest')}}</td>
- <td>Élő szabvány, legfrisebb verzió</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Böngésző_támogatás">Böngésző támogatás</h2>
-
-<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
-
-<p>{{Compat("api.XMLHttpRequest")}}</p>
-
-<h2 id="Kapcsolódó_írások">Kapcsolódó írások</h2>
-
-<ol>
- <li><a href="/en-US/docs/AJAX/Getting_Started">MDN AJAX introduction</a></li>
- <li><a href="/en-US/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest">HTML in XMLHttpRequest</a></li>
- <li><a href="/en-US/docs/Web/HTTP/Access_control_CORS">HTTP access control</a></li>
- <li><a href="/en-US/docs/How_to_check_the_security_state_of_an_XMLHTTPRequest_over_SSL">How to check the security state of an XMLHTTPRequest over SSL</a></li>
- <li><a href="http://www.peej.co.uk/articles/rich-user-experience.html">XMLHttpRequest - REST and the Rich User Experience</a></li>
- <li><a href="https://msdn.microsoft.com/library/ms535874">Microsoft documentation</a></li>
- <li><a href="http://jibbering.com/2002/4/httprequest.html">"Using the XMLHttpRequest Object" (jibbering.com)</a></li>
- <li><a href="https://xhr.spec.whatwg.org/">The <code>XMLHttpRequest</code> object: WHATWG specification</a></li>
-</ol>