나는 내 cakephp에서 내 페이지 중 하나를 열 수있는 popupwindow를 만듭니다. 이 팝업은 다른 페이지로 연결되는 양식입니다. '제출'버튼을 클릭하면 자동으로 데이터를 MySQL에 저장하고 닫을 것입니다.제출 버튼을 클릭하면 내 팝업 창을 닫는 방법?
제출 버튼을 클릭하면 팝업 창이 닫힙니다. 내가 top.close() 설정; 그러나 아무 기능도하지 말라. 나는()가 없습니다 무엇
..
<script type="text/javascript">
function popup(mylink, windowname){
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=800,height=1200,scrollbars=yes');
return false;
}
</script>
<p><A HREF="http://.../index.php/products/add" onClick="return popup(this, 'notes');top.close();">Add Products</A></p>
자바 스크립트로이 태그를하시기 바랍니다. – fserb