JavaScript CloseBtn window.close() $(".CloseBtn").click(function () { window.opener = "nothing";window.open('', '_parent', '');window.close();}); JavaScript NewBtn Window.Open() window.onload = function() {$(".NewBtn").click(function () { window.open("http://oki.saerom.co.kr/Notice.nsf/newnotice?openform", "네이버새창", "width=800, height=700, toolbar=no, menubar=no, scrollbars=no, resizable=yes" );}); }; JQuery SaveBtn Submit() & Attribute Selector $(".SaveBtn").click(function () { var form =document.forms[0]; //alert(form.NB_title.value); if(form.NB_title.value == "" || form.NB_content.value == "" ){ alert("빈칸을 입력하세요"); return false; }else{ $("[name='_Notic']").submit(); return true } 이전 1 다음