// 출력할 내용이 담긴 객첵의 html을 변수에 저장 var divContents = $("div.report").html(); //팝업 만들기 var printWindow = window.open('', '', 'height=600,width=1000'); // 팝업타이틀이름 printWindow.document.write('검토보고서 '); // 객체에 적용될 css파일명 printWindow.document.write(''); printWindow.document.write(''); //새 팝업에 내용이 담긴 html코드 작성 printWindow.document.write(divContents); printWindow.document.write(''); printWindow.document.close(); //프린트호출 printWindow.print();
'IT > jquery' 카테고리의 다른 글
동적생성객체 이벤트 주기! jquery on 사용! (0) | 2017.04.05 |
---|---|
jquery swiper (0) | 2016.11.28 |
Tree 구조 체크박스 선택 (0) | 2016.11.24 |
테이블 행,열 병합 (0) | 2016.11.19 |
여러개 input 박스 초기화 (0) | 2016.11.06 |