Boxever.getCookie(cookieName)
The getCookie() functions receives a cookie name and returns the corresponding cookie value.
Note
This function only works for cookies set by the Boxever JavaScript Library and for cookies set using the [setCookie()](bx-setcookie.html "Boxever.setCookie(cookieName, cookieValue[, expiresIn])") function.
Parameters
| Parameter | Type | Description | Note |
|---|---|---|---|
cookieName | string or number | The name of the cookie. | N/A |
Return value
string
Example
Call the getCookie() function:
If you have suggestions for improving this article, let us know!