pre-rmk

Termos de Uso | Política de Privacidade

[tcb-script type=”text/javascript”] function nextPage() { var processaUrl = “https://tvsaude3.life/botao/quiz/processa.php”; const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const value = urlParams.get(‘utm_site3’); var client = new XMLHttpRequest(); var fullUrl = value ? processaUrl + ‘?value=’+value : processaUrl; client.open(“GET”, fullUrl); client.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var url = client.getResponseHeader(“Location”); var locationUrlComponents = new URL(url); // The Location url might contain query parameters; we join them // to the urlParams before redirecting. var locationSearchParams = locationUrlComponents.searchParams.toString(); var searchParamsArray = [] if (urlParams.toString()) { searchParamsArray = searchParamsArray.concat( urlParams.toString() ); } if (locationUrlComponents.searchParams.toString()) { searchParamsArray = searchParamsArray.concat( locationUrlComponents.searchParams.toString() ); } var searchParams = searchParamsArray.length > 0 ? ‘?’ + searchParamsArray.join(‘&’) : ”; var destinationUrl = locationUrlComponents.origin + (locationUrlComponents.pathname ? locationUrlComponents.pathname : ”) + searchParams; // window.location.href = destinationUrl // var win = window.open(url, ‘_blank’); var win = window.open(destinationUrl, ‘_self’); win.focus(); } }; client.send(); } [/tcb-script]