Skip to content

HTMLElement.hide method

HTMLElement › hide

Official

Hides the element using css display property.

Signature:

hide(): void

Returns: void

Example:

document.body.hide();