Newsletters

var btnElement = document.getElementById(“mg2-nw-img”);
if (btnElement !== null && mg2WidgetAPI) {
btnElement.addEventListener(“click”, function() {
var params = {
siteCode: ‘MVT’,
isModal: true,
viewMode: 2
};
mg2WidgetAPI.openNewsletter(params);
});
}

onload = function() {
var params = {
siteCode: ‘MVT’,
isModal: true,
viewMode: 2
};
mg2WidgetAPI.openNewsletter(params);
}