A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/DocumentType/remove below:

DocumentType: remove() method - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. DocumentType
  4. remove()

Filter sidebar

In this article
  1. Document Object Model (DOM)
  2. DocumentType
  3. Instance properties
    1. name
    2. publicId
    3. systemId
  4. Instance methods
    1. after()
    2. before()
    3. remove()
    4. replaceWith()
  5. Inheritance
    1. Node
    2. EventTarget
  6. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. AbstractRange
    4. Attr
    5. CDATASection
    6. CharacterData
    7. Comment
    8. CustomEvent
    9. DOMError Deprecated
    10. DOMException
    11. DOMImplementation
    12. DOMParser
    13. DOMPoint
    14. DOMPointReadOnly
    15. DOMRect
    16. DOMTokenList
    17. Document
    18. DocumentFragment
    19. Element
    20. Event
    21. EventTarget
    22. HTMLCollection
    23. MutationObserver
    24. MutationRecord
    25. NamedNodeMap
    26. Node
    27. NodeIterator
    28. NodeList
    29. ProcessingInstruction
    30. Range
    31. StaticRange
    32. Text
    33. TextDecoder
    34. TextEncoder
    35. TimeRanges
    36. TreeWalker
    37. XMLDocument
  7. Guides
    1. Introduction to the DOM
    2. Using the Document Object Model
    3. Attribute reflection
    4. Traversing an HTML table with JavaScript and DOM Interfaces
    5. Locating DOM elements using selectors
    6. Working with events
    7. Examples of web and XML development using the DOM
In this article DocumentType: remove() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The DocumentType.remove() method removes a document's doctype. If it is already detached from the document, calling remove() does nothing.

Syntax

js

remove()
Parameters

None.

Return value

None (undefined).

Examples Using remove()

js

document.doctype; // "<!doctype html>'
document.doctype.remove();
document.doctype; // null
Specifications Specification DOM
# ref-for-dom-childnode-remove①
Browser compatibility See also Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Jul 26, 2025 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4