카테고리1프로그래밍
카테고리2자바스크립트
제목현재 화면의 가로 세로 값 구하기
작성자고성훈
작성일2025-01-07
const width = window.innerWidth; // 화면의 가로 크기
const height = window.innerHeight; // 화면의 세로 크기
alert(`가로: `+width+`px, 세로: `+height+`px`);