답변 3개 / 댓글 1개
채택된 답변
+20 포인트
여기 간략한 예제가 있네요
Copy
<script type="text/javascript"> function wo(href){ var w = screen.availWidth; var l = w / 2 - 100 / 2; // window.open(href, "boardmove", "left=350, top=50, width=100, height=10, scrollbars=0"); window.open(href, "boardmove", "left=" + l + ", top=50, width=100, height=10, scrollbars=0"); } </script> <a href="javascript:wo('http://google.com')">link</a>
답변을 작성하려면 로그인이 필요합니다.