댓글 검색 목록

[javascript] 현재 창의 내용을 인쇄하는 JavaScript 프로그램을 작성하시오.

페이지 정보

작성자 운영자 작성일 17-12-29 21:46 조회 1,397 댓글 0

HTML :

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>현페이지 인쇄하기.</title>
</head>
<body>
<p></p>
<p>현페이지를 인쇄하려면 아래 버튼을 클릭하세요</p>
<button onclick="print_current_page()">인쇄하기</button>
</body>
</html>




코드 :

function print_current_page()
{
window.print();
}




댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.