인쇄 할 때 헤더 페이지 바닥 글을 제거하고 인쇄하기 전에 다음 코드를 추가하십시오. var hkey_root, hkey_path, hkey_key;
코드 사본은 다음과 같습니다.
hkey_root = "hkey_current_user";
hkey_path = "// 소프트웨어 // Microsoft // Internet Explorer // pagesetup //";
var 머리, 발, 상단, 하단, 왼쪽, 오른쪽;
var wsh = new ActiveXobject ( "wscript.shell");
hkey_key = "헤더";
// 헤더 설정 (빈) 설정에 따라 채우기
wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
hkey_key = "바닥 글";
// 바닥 글을 설정 (빈) 설정하려는 것에 따라 채우기
wsh.regwrite (hkey_root+hkey_path+hkey_key, "");
hkey_key = "margin_bottom";
// 다음 페이지 설정 (0) 설정에 따라 채우기
wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
hkey_key = "margin_left";
// 설정하려는 것에 따라 왼쪽 여백을 설정하십시오 (0).
wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");
hkey_key = "margin_right";
// 오른쪽 페이지 마진 설정 (0)
wsh.regwrite (hkey_root+hkey_path+hkey_key, "0");
hkey_key = "margin_top";
// 이전 페이지 마진 설정 (8)
wsh.regwrite (hkey_root+hkey_path+hkey_key, "1");