EOS Message - Script Auto Close Window | XM Community
Skip to main content

Hi Everyone

Hope you’re all well.

I am using the following script embedded into the EOS message via HTML.

<script>
setTimeout(function(){
window.close();
}, 1500);
</script>

This closes the browser window fine in Safari, but not in Chome.

Any ideas?

Thanks :)

The above code should work for the all browsers, but if it’s not then you should check if the code is working with simple ‘console.log(‘working’)’ or ‘alert(‘working’)’ in function and if it’s not working then try simple ‘window.close()’ for chrome.


Leave a Reply