Html & Script

팝업창으로 submit 자바스크립트

페이지 정보

본문

<html>
 <head>
  <title>scriptwin</title>
  <script type="text/javascript">
  //<![CDATA[
    function submitWin(form){
      window.open('',form.target,'width=300,height=200,scrollbars=yes');
      return true;
    }
  //]]>
  </script>
 </head>

 <body>
   <form method="post" action="http://www.naver.com" target="sendWin" onsubmit="return submitWin(this);">
     <!-- 폼내용들 생략 //-->
     <input type="submit">
   </form>

 </body>
</html>

관련자료

등록된 댓글이 없습니다.
Today's proverb
우리에게 남는 것은 다른 사람에게 준 것뿐이다. (긴스버그)