function BrowserDetect() {
        var userAgent = navigator.userAgent; 
        var isOpera = userAgent.indexOf("Opera") > -1;
        var isEdge = userAgent.indexOf("Edge") > -1;
        var isFF = userAgent.indexOf("Firefox") > -1;
        var isSafari = userAgent.indexOf("Safari") > -1 && userAgent.indexOf("Chrome") == -1;
        var isChrome = userAgent.indexOf("Chrome") > -1 && userAgent.indexOf("Safari") > -1;
        if (isFF) {
            console.log("FF");
        }
        if (isOpera) {
            console.log("Opera");
        }
        if (isSafari) {
            console.log("Safari");
        }
        if (isChrome) {
            console.log("Chrome");
        }
        if (isEdge) {
            console.log("Edge");
        }
        if (!!window.ActiveXObject || "ActiveXObject" in window) {
            console.log("IE");
        }
    }