Firefox Tomorrow

web api instance method

Document: clear() method

View on MDN ↗

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

Syntax

clear()

Parameters

None.

Return value

None (undefined).

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.