JAVASCRIPT

    자동으로 해상도 체크 최대창으로 열림
    • 조회수 4,507
    • 작성일 2008-07-30
    •  
    자동으로 해상도 체크 최대창으로 열림

    <body> 다음에 넣어주세요!!!!!

    <script Language="Javascript">
    top.window.moveTo(0,0);
    if (document.all) { 
         top.window.resizeTo(screen.availWidth,screen.availHeight);
    }
    else if (document.layers||document.getElementById) { // 해상도 체크 최대창으로 하는 부분
         if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
              top.window.outerHeight = screen.availHeight;
              top.window.outerWidth = screen.availWidth;
         }
    }
    </script>