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>

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
과거를 아프게 들여다보지 말라. 그것은 다시 오지 않는다. 현재를 슬기롭게 이용하라. 그것은 그대의 것이다. 힘찬 기상으로 두려워말고 나아가 무지개를 맞으라.