We have embedded a form via iFrame on our website. When the form has been sent, a new URL should be called.
On the desktop (Chrome browser), the redirect works. On iOS on the iPhone, the window freezes when you submit the form.
Do you know what is causing this or what is triggering this error in the code?
Here is our Code:
<script type="text/javascript">
(function () {
var d = document,
s = d.createElement('script');
s.src = 'https://kitarinocockpit.nemborn.com/Script/NemPlads/preregister-v1.0.0.1.js';
s.id = 'nemplads-script';
s.setAttribute('data-timestamp', +new Date());
window.addEventListener('success', function (e) {
const items = document.location.search.substr(1).split("&");
for (let index = 0; index < items.length; index++) {
const getParam = items[index].split("=");
if (getParam[0] === 'id') {
document.location.href = 'https://www.kitarino.net/bestatigung-platzanfrage?id=' + decodeURIComponent(getParam[1]);
break;
}
}
});
(d.head || d.body).appendChild(s);
})();
</script>