1 i f 2 <--- 해석가능하시죠 ?

Posted
Filed under dog발;/javascript
<script>
var print_contents = $("#print_div").html();
$("#print_iframe").contents().find("body").html(print_contents);
$("#print_iframe").contents().find(".btn_box_hidden").hide();
$("#print_iframe").focus();
frames["print_iframe"].focus();
frames["print_iframe"].print();
</script>
 
<iframe name="print_iframe" id="print_iframe" src="/mypage/main/blank_print" width="0" height="0" style="display:"></iframe>
 
<div id="print_div">
이 부분이 인쇄가 됩니다.
</div>
2016/07/05 15:29 2016/07/05 15:29