JS 부분 인쇄 및 전체 페이지 인쇄

[전재 출처 밝 혀 주세요.
: http://blog.csdn.net/leytton/article/details/38612973
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<script type="text/javascript">
	function printWin(content_id)
	{
		var oWin=window.open("","_blank");
		oWin.document.write(document.getElementById(content_id).innerHTML);
		oWin.focus();
		oWin.document.close();
		oWin.print()
		oWin.close()
	}
</script>
<div>
		JS    
</div>
<div id="content">
		       
</div>
<hr size="1">
<div>
	<button onclick="printWin('content')" >    </button>
	<button onclick="window.print();" >    </button>
</div>
</body>
</html>

좋은 웹페이지 즐겨찾기