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
무엇인가를 이루려고 하는 마음이 없다면 세상 어디를 가나 두각을 나타낼 수가 없다. 무지함을 두려워 말라, 거짓 지식을 두려워 하라. (파스칼)