MDN self-hosted library · e01.org

Document: clear() method

DOM

no runnable cells web-api-instance-method upstream source

DOM

The Document.clear() method does nothing, but doesn't raise any error.

Syntax

clear()

Parameters

None.

Return value

None (undefined).

Specifications

Browser compatibility