<script language="javascript" type="text/javascript" src="../common/scripts/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var browser = "";
var browserVersion = "";
          var ua = window.navigator.userAgent;
          alert(ua);
          if(ua.indexOf('MSIE') > 0 || ua.indexOf('Trident') > 0) {
              browser = "IE";
          }else if(ua.indexOf('Opera') > 0 || ua.indexOf('OPR') > 0){
              browser = "Opera";
          }else if(ua.indexOf('Firefox') > 0){
             browser = "Firefox";
          }else if(ua.indexOf('Safari') > 0) {
              if(ua.indexOf('Chrome') > 0)
                  browser = "Chrome";
              else
                  browser = "Safari";
          }
<!-- 브라우저 종류 제한 -->
         if(browser != 'Firefox'){
              alert("<emxUtil:i18nScript localize="i18nId">emxFramework.Common.NoBrowser.Id</emxUtil:i18nScript>");
              window.open('','_self').close();
         }
<!-- 브라우저 버전 제한 -->        
         var uaArray = ua.split('/'); alert(uaArray);
         browserVersion = uaArray[3]; alert(browserVersion);
        
        
         if(browserVersion > 51){
             alert("<emxUtil:i18nScript localize="i18nId">emxFramework.Common.NoBrowser.Id</emxUtil:i18nScript>");
             window.open('','_self').close();
        }
});
</script>

블로그 이미지

잉비니

,