13. 7. 19.

Javascript 브라우저 기본정보 체크

 window.onload = function(){
  var html="";
  html += "width : " + "<strong>" + screen.availWidth + "</strong>";
  html += "height : " + "<strong>" + screen.availHeight + "</strong>";
  html += "platform : " + "<strong>" + navigator.platform + "</strong>";
  html += "app_name : " + "<strong>" + navigator.appName + "</strong>";
  html += "app_version : " + "<strong>" + navigator.appVersion + "</strong>";
  document.write(html);
 }

댓글 없음:

댓글 쓰기