.elementor-element-58dd4f5 .graciasxregistrarte{
top: 110px!important;
}
| ¡Gracias por descargar nuestra guía! |
| En caso de que no se descargue automaticamente haz click aquí:
Volver atrás
|
window.onload = function () {
setTimeout(function () {
DownloadFile("whitepapper-isc-III.pdf");
}, 500);
};
function DownloadFile(fileName) {
//Set the File URL.
var url = "https://isc.com.do/wp-content/uploads/2021/03/" + fileName;
//Create XMLHTTP Request.
var req = new XMLHttpRequest();
req.open("GET", url, true);
//req.responseType = "blob";
req.onload = function () {
//Convert the Byte Data to BLOB object.
var blob = new Blob([req.response], { type: "application/octetstream" });
//Check the Browser type and download the File.
var isIE = false || !!document.documentMode;
if (isIE) {
window.navigator.msSaveBlob(blob, fileName);
} else {
var url = window.URL || window.webkitURL;
link = url.createObjectURL(blob);
var a = document.getElementById('downloadLink');
a.setAttribute("download", fileName);
// a.setAttribute("href", link);
// document.body.appendChild(a);
a.click();
// document.body.removeChild(a);
}
};
req.send();
};