!isFirefox && !isEdge && !isChrome) { showDialog(); } if (userAgent.indexOf("msie") > -1) { showDialog(); } function showDialog() { window.location.href = 'download.html'; }