웹 페이지 인쇄해도 하얗게 나오게 하기... < head>와</head> 사이에 넣어주세요. < script language="javascript"> var hideBuf; function hideBeforePrint() { hideBuf = document.body.innerHTML; document.body.innerHTML = ''; } function showAfterPrint() { document.body.innerHTML = hideBuf; } window.onbeforeprint = hideBeforePrint; window.onafterprint = showAfterPrint; < /script> < script language="JavaScript"> < !-- function hidestatus() { window.status='' return true } if (document.layers) document.captureEvents(Event.mouseover | Event.mouseout) document.onmouseover=hidestatus document.onmouseout=hidestatus // --> < /script> |
'Javascript' 카테고리의 다른 글
두개의 팝업창을 동시에 띄우려면 (0) | 2016.05.30 |
---|---|
상태바에 월,일,요일 현재시각 나타내기 (0) | 2016.05.30 |
방문 할때마다 메인이 바뀌게 하자 (0) | 2016.05.30 |
지정 경로로 되돌아가기 (0) | 2016.05.30 |
뒤로, 앞으로, 새로고침, 창닫기, 위로 버튼 만들기 (0) | 2016.05.30 |