임베디드 | 라즈베리파이 | ARM | 리눅스 | Qt | 딥러닝

<input  class="comp_click" type="submit" value="선택" onclick="window.open('/urawum/1','','height=400,width=400'); return false;">


<form action="w_2/get_comp2.php"  method="post" id="asdddd" name="coddmp" enctype="multipart/form-data" target="_blank">




  <input type="text" id="thePopupField">

  <br><input type="button" value="Send Form" onclick="doTheSubmit();">

  <script>

    function doTheSubmit() {

      window.close();

      var doc = window.opener.document,

          theForm = doc.getElementById("theForm"),

          theField = doc.getElementById("theField");

      theField.value = document.getElementById("thePopupField").value;

      theForm.submit();

    } setTimeout('doTheSubmit();', 200);

  </script>


 enctype="multipart/form-data"

 onsubmit="checksaveform()"

 onclick="window.open('w_2/get_comp2.php','','height=400,width=400'); return false;"

 onsubmit="return false;"



confirm : <a href="http://www.naver.com" onclick="return confirm('Are you sure you want to do that?');">Click Me</a>


<form action="w_2/get_comp2.php"  method="post" id="asdddd" name="coddmp" enctype="multipart/form-data">





 <script>

    function doTheSubmit() {

      alert("fff")

      //var doc = window.opener.document;

      theField = window.opener.document.getElementById("get_comp_span_1").firstChild.data;

      alert(theField);


 

    try {

        window.opener.HandlePopupResult("asdf");

    }

    catch (err) {}

    window.close();

    return false; 



      window.close();

      theForm.submit();

    } setTimeout('doTheSubmit();', 200);

  </script>


<?php


$what_kind = $_POST["what_kind"]; 

$what_bbs  = $_POST["what_bbs"]; 

 ?>



http://stackoverflow.com/questions/9276086/popup-window-to-return-data-to-parent-on-close


https://forums.digitalpoint.com/threads/help-with-tinybox-javascript-popup-box.2061743/


http://www.scriptiny.com/2009/05/javascript-popup-box/