카테고리 없음
팝업창 띄우기2
안싱미
2016. 5. 3. 15:28
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <html> <head> <script type="text/javascript"> function testAlert() { alert("자식창에서 호출 했습니다."); } window.onload = function () { var popupButton = document.getElementById("popup"); popupButton.onclick = function () { var jsPopup = window.open("js.html", null, "width=450, height=450, resizable=no, scrollbars=no"); //jsPopup.changeData(); var text1 = jsPopup.document.getElementById("text1"); text1.value = "헤헤헤~"; }; }; </script> </head> <body> <span id="popup">팝업창 띄우기</span> </body> </html> | cs |
실행화면