HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

attachShadow

Description

The attachShadow of Element for JS creates a shadow root for element and returns it.

Syntax

shadow = element.attachShadow(init)

Parameters

init

Initialize

Examples

1 · closed

2 · open