I need to use a script only in Internet Explorer and for this I use the following line of code:
<script type="text/javascript">
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
document.write('<script src="js/jszip-utils-ie.min.js"><\/script>');
</script>
The problem is that it works when I run it locally, but when uploading it to the server it does not detect well if I'm on the Internet Explorer and it does not execute this script. Any idea what the reason may be? Thanks!