자바스크립트 15) popup

hahahoho셍·2021년 5월 29일
0

자바스크립트

목록 보기
17/26
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function popup() {
            //alert('팝업');
            //내장객체
            //변수에 저장을 해줘야 따로 팝업이 뜸
            var pop = window.open('20210520_09_popupwindow.html','레몬쓰',
                "width =300px, height=500px, left=300, top=50");
        }

    </script>
</head>
<body>
    <button onclick="popup()">팝업창 두둥</button>
</body>
</html>
profile
그냥 공부 한거 적는 벨로그 하하하핳ㅎ하하하핳하ㅏ

0개의 댓글