isSecureContext global property

The global isSecureContext read-only property returns a boolean indicating whether the current context is secure (true) or not (false).

Value

Boolean true or false.

Specifications

Specification
HTML Standard
# dom-issecurecontext-dev

Browser compatibility

BCD tables only load in the browser

See also