API Reference - WebPortal.getCountry()
WebPortal.getCountry()
WebPortal.getCountry()
Description | Gets the country currently selected by the user. |
Response | String The country’s name. |
Parameter | Void |
Example
1
2
3
4
var userCountry = WebPortal.getCountry()
if (userCountry === "France") {
DisplayFranceContent()
}