Javascript

팝업창 뛰우기

캡틴노랑이 2015. 9. 1. 15:04
반응형
 
function popSubmit(FormName, desurl, wname, scflag, width, height, hidData, menubar, toolbar)
{
    menubar = menubar || "no";
    toolbar = toolbar || "no";
    $("#hidData").get(0).value = hidData || '';
    var fm = $("#" + FormName).get(0);
    var pop = window.open('', wname, 'toolbar=' + toolbar + ',location=no,directories=no,status=no,menubar=' + menubar + ',scrollbars=' + scflag + ',resizable=yes,copyhistory=no,width=' + width + ',height=' + height);
    fm.method = "post";
    fm.action = desurl;
    fm.target = wname;
    fm.submit();
    pop.focus();
}
반응형