Podsumowanie
Metoda clear czyści dokument, usuwając całą jego zawartość.
Składnia
document.clear()
Przykład
<button label="empty" onclick="document.clear();" />
Specyfikacja
DOM Level 0 - brak w specyfikacji.
Metoda clear czyści dokument, usuwając całą jego zawartość.
document.clear()
<button label="empty" onclick="document.clear();" />
DOM Level 0 - brak w specyfikacji.
Document
Document.activeElement
Document.alinkColor
Document.anchors
Document.applets
Document.async
Document.bgColor
Document.body
Document.characterSet
ParentNode.childElementCount
ParentNode.children
Document.compatMode
Document.contentType
Document.currentScript
Document.defaultView
Document.designMode
Document.dir
Document.doctype
Document.documentElement
Document.documentURI
Document.documentURIObject
Document.domain
Document.domConfig
Document.embeds
Document.fgColor
ParentNode.firstElementChild
Document.forms
Document.head
Document.height
Document.images
Document.implementation
Document.inputEncoding
ParentNode.lastElementChild
Document.lastModified
Document.lastStyleSheetSet
Document.linkColor
Document.links
Document.location
Document.mozFullScreen
Document.mozFullScreenElement
Document.mozFullScreenEnabled
Document.mozSyntheticDocument
GlobalEventHandlers.onabort
Document.onafterscriptexecute
Document.onbeforescriptexecute
GlobalEventHandlers.onblur
GlobalEventHandlers.onchange
GlobalEventHandlers.onclick
GlobalEventHandlers.onclose
GlobalEventHandlers.oncontextmenu
GlobalEventHandlers.ondblclick
GlobalEventHandlers.onerror
GlobalEventHandlers.onfocus
GlobalEventHandlers.oninput
GlobalEventHandlers.onkeydown
GlobalEventHandlers.onkeypress
GlobalEventHandlers.onkeyup
GlobalEventHandlers.onload
GlobalEventHandlers.onmousedown
GlobalEventHandlers.onmousemove
GlobalEventHandlers.onmouseout
GlobalEventHandlers.onmouseover
GlobalEventHandlers.onmouseup
Document.onoffline
Document.ononline
GlobalEventHandlers.onscroll
GlobalEventHandlers.onselect
GlobalEventHandlers.onsubmit
Document.origin
Document.plugins
Document.pointerLockElement
Document.popupNode
Document.preferredStyleSheetSet
Document.readyState
Document.referrer
Document.scripts
Document.selectedStyleSheetSet
Document.styleSheets
Document.styleSheetSets
Document.title
Document.tooltipNode
Document.URL
Document.vlinkColor
Document.width
Document.xmlEncoding
Document.xmlVersion
Document.adoptNode()
Document.caretPositionFromPoint()
Document.clear()
Document.close()
Document.createAttribute()
Document.createCDATASection()
Document.createComment()
Document.createDocumentFragment()
Document.createElement()
Document.createElementNS()
Document.createEntityReference()
Document.createEvent()
Document.createExpression()
Document.createNodeIterator()
Document.createNSResolver()
Document.createProcessingInstruction()
Document.createRange()
Document.createTextNode()
Document.createTouch()
Document.createTouchList()
Document.createTreeWalker()
Document.elementFromPoint()
Document.enableStyleSheetsForSet()
Document.evaluate()
Document.execCommand()
Document.exitPointerLock()
Document.getBoxObjectFor()
Document.getElementById()
Document.getElementsByClassName()
Document.getElementsByName()
Document.getElementsByTagName()
Document.getElementsByTagNameNS()
Document.getSelection()
Document.hasFocus()
Document.importNode()
Document.loadOverlay()
Document.mozCancelFullScreen()
Document.mozSetImageElement()
Document.open()
Document.queryCommandSupported()
Document.querySelector()
Document.querySelectorAll()
Document.registerElement()
Document.releaseCapture()
Document.write()
Document.writeln()