clear The clear method clears the current document of all its content. Syntax document.clear() Parameters None. Example <button label="empty" onclick="document.clear();" /> Notes None. Specification DOM Level 0. Not part of specification.
The clear method clears the current document of all its content.
document.clear()
None.
<button label="empty" onclick="document.clear();" />
DOM Level 0. Not part of specification.