<SCRIPT Language="javascript">
function OpenPrint() {
document.getElementsByName('_pay_gubun').item(0).value = document.getElementsByName('pay_gubun').item(0).value;
document.getElementsByName('_YY').item(0).value = document.getElementsByName('YY').item(0).value;
document.getElementsByName('_MM').item(0).value = document.getElementsByName('MM').item(0).value;
document.getElementsByName('_s_sabun').item(0).value = "200002";
var gsWin = window.open("about:blank", "winName");
var fr = document.frm;
fr.action = "salary_view_print.asp";
frm.target = "winName";
frm.submit();
}
</SCRIPT>
<form name="frm" action="salary_view_print.asp" method="post">
<input type="hidden" name="_pay_gubun" value="">
<input type="hidden" name="_YY" value="">
<input type="hidden" name="_MM" value="">
<input type="hidden" name="_s_sabun" value="">
<input type="button" name="Submit2" value="출력" class=in2 onClick="OpenPrint();">
</form>
<input type="button" value="조회끝 (닫기)" class=in2 Onclick="location.href = 'pwcheck.aspx'">
'Study > Html|JavaScript' 카테고리의 다른 글
[HTML] <LINK>, <img>, <map>, <area> (0) | 2014.10.23 |
---|---|
[JAVASCRIPT] eval() 사용법 (0) | 2014.10.15 |
[JavaScript] 부모창에 창 띄우기 (0) | 2014.08.05 |
[JavaScript] cs에서 javascript alert 사용하기 (0) | 2014.03.28 |
[JavaScript] forms 속성 (0) | 2014.02.11 |