Document: clear() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("DOM")}}
The **Document.clear()** method does nothing, but doesn't raise any error.
Syntax
js-nolint
clear()Parameters
None.
Return value
None ({{jsxref("undefined")}}).
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}