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()
function.
Parameters
Parameter |
Type |
Description |
Note |
---|---|---|---|
|
string or number |
The name of the cookie. |
N/A |
Return value
string
Example
Call the getCookie()
function: