hasCookies

The hasCookies() method checks whether cookies are enabled in this browser.

Syntax

hasCookies()
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>

Returns

Whether cookies are enabled in this browser.

Format: True: cookies are enabled. False: cookies are disabled.

Type: boolean

Examples

To check whether cookies are enabled in this browser:

_paq.push([function () {  
    console.log(this.hasCookies());  
}]);
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>
hasCookies(): Promise<boolean>

A sample of the return value:

True

Related methods