JavaScript

[Window_Object] JS - screenTop 속성 - 화면기준 창의 세로좌표 (Firefox 경우, window.screenY 이용)

screenTop 예제

 

<script>

function homzzang() {

  var hzWin = window.open("", "hzWin");

  hzWin.document.write("<p>홈짱닷컴 Homzzang.com");

  hzWin.document.write("<br>ScreenLeft: " + hzWin.screenLeft);

  hzWin.document.write("<br>ScreenTop: " + hzWin.screenTop + "</p>");

}

</script>

</head>

<body>


<button onclick="homzzang()">클릭</button>

 

결과보기



분류 제목
Window_Object JS - window 객체 - 윈도우객체 (속성/메서드) 종류
Window_Object JS - closed 속성 - 윈도우창 닫힘 체크
Window_Object JS - console 속성 - 콘솔 윈도우객체속성
Window_Object JS - defaultStatus 속성 - 상태표시줄 기본텍스트 (지원X)
Window_Object JS - document 속성 - 웹문서 윈도우객체속성
Window_Object JS - frameElement 속성 - 현재창이 삽입된 <iframe> 요소 반환
Window_Object JS - window.frames 속성 - 프레임 윈도우객체속성 (= window.frames속성 = 윈도우…
Window_Object JS - history 속성 - 히스토리 윈도우객체속성
Window_Object JS - innerHeight 속성 ★ - 윈도우창 순수 내용영역 높이 반환 (= 내용높이 = 내부높이 = …
Window_Object JS - innerWidth 속성 ★ - 윈도우 내용영역 너비(= 내용너비 = 내부너비 = innerWidt…
Window_Object JS - length 속성 - iframe 개수 반환 (= length속성 = 렝스속성) ※ 아이프레임 요소…
Window_Object JS - location 속성 - 위치객체 (= window객체소속, 현재URL정보 갖음)
Window_Object JS - name 속성 ★ - 윈도우창이름 설정/반환 (= 자식창제어)
Window_Object JS - navigator 속성 - 웹브라우저객체 (※ window객체소속)
Window_Object JS - opener 속성 ★ - 팝업창의 부모창 제어 (= opener속성 = 오프너속성) ※ 클릭 시, …
1/4
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 2
웹유틸
회원센터
홈짱닷컴 PC버전 로그인