로그인

검색

조회 수 296 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

<script language="javascript">
var win = null;

function AreaPrintAll(printThis){
  win = window.open();
  self.focus();
  win.document.open();
  win.document.write ('<'+'html'+'>');

  win.document.write ('<'+'head'+'>');
  win.document.write ('<'+'/'+'head'+'>');
  win.document.write ('<'+'body'+'>');
  win.document.write (printThis);
  win.document.write ('<'+'/'+'body'+'><'+'/'+'html'+'>');
  win.document.close();
  win.print();
  win.close();
}
</script>

 

<html>

<head>

</head>

<body>

 

<div id="box1">첫번째 영역</div>

 

<div id="box2">두번째 영역</div>

 

<div id="box3">세번째 영역</div>

 

<a href="javascript:AreaPrintAll(document.getElementById('box1').innerHTML);">첫번째 영역을 출력 합시다.</a><br />

<a href="javascript:AreaPrintAll(document.getElementById('box2').innerHTML);">두번째 영역을 출력 합시다.</a><br />

<a href="javascript:AreaPrintAll(document.getElementById('box3').innerHTML);">세번째 영역을 출력 합시다.</a>

[출처] 지정 영역만 프린트(PRINT) 하기....한페이지에 여러 영역이 있을 경우 (불사신조드의 웹디자인/웹프로그램) |작성자 초천재

Who's 꽃지닷컴

profile

Respect yourself and others will respect you

- 창의적 사고를 하자!

- 소규모 웹사이트 제작 및 수정 (24시간 항시대기)

?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 XE/Rhmix 오라클 클라우드 - 우분투(Ubuntu) php7.3에서 php7.4로 업그레이드 하기 꽃지닷컴 2022.03.17 224
공지 XE/Rhmix 라이믹스,XE 외부페이지 php 보안관련 꽃지닷컴 2022.03.16 245
공지 XE/Rhmix PHP PDO CRUD with ajax jQuery and Bootstrap 회원관리(사진등록) file 꽃지닷컴 2021.03.19 815
공지 XE/Rhmix soengsouy- PHPCRUD ALL FILE file 꽃지닷컴 2021.03.19 274
공지 XE/Rhmix [구매하자] CRUD Application with PHP, PDO, and MySQL secret 꽃지닷컴 2021.03.19 0
공지 XE/Rhmix 라이믹스 사이트 모음 꽃지닷컴 2021.03.02 407
공지 XE/Rhmix XE 참고 사이트 모음 secret 꽃지닷컴 2017.04.13 134
249 OracleCloud nginx let's encrypt 꽃지닷컴 2023.04.18 58
248 OracleCloud Install Free SSL Certificate with Let's Encrypt on Ubuntu 22.04 LTS | NGINX Server 꽃지닷컴 2023.04.17 82
247 WEB 사라진 과거 옛날 사이트를 보고 싶다면? 꽃지닷컴 2023.04.12 51
246 PC HP ProDesk 400 G4 SFF Gaming Upgrades Video Card SSD RAM 꽃지닷컴 2023.02.25 47
245 OracleCloud nginx 설치 설정 깔금 정리 사이트 secret 꽃지닷컴 2023.02.23 0
244 OracleCloud let's encrypt 설치 꽃지닷컴 2023.02.22 75
243 OracleCloud let's encrypt 설치 secret 꽃지닷컴 2023.02.22 0
242 WEB cloudflare 522 error 꽃지닷컴 2023.02.22 37
241 Linux No pupported authentication methods available (sercer sent:publickey) 오라클클라우드 putty mobaxterm file 꽃지닷컴 2023.02.21 46
240 PC 세대별 메인보드 cpu 호환정보 secret 꽃지닷컴 2023.02.19 0
239 인공지능 Create Your Own AI Animated Avatar: A Step-by-Step Guide 꽃지닷컴 2023.02.16 80
238 WEB 인증서 재설치 시 오류 꽃지닷컴 2023.02.14 228
237 WEB OCI 오라클 Let’s encrypt 설치. Crontab 꽃지닷컴 2023.02.13 55
236 WEB 무료 DNS 꽃지닷컴 2023.02.12 29
235 Linux Let's Ecrypt 인증서 설치하기 꽃지닷컴 2023.01.30 39
234 WEB 털린 내 정보 찾기 서비스 꽃지닷컴 2023.01.26 43
233 xe to rhymix 이전 file 꽃지닷컴 2023.01.26 40
232 webflow webflow 꽃지닷컴 2023.01.23 28
231 ubuntu nginx let's encrypt ssl install snap 꽃지닷컴 2023.01.16 96
230 컴퓨터 오류검사  꽃지닷컴 2023.01.10 10
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 14 Next
/ 14