<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en"
"Http://www.w3.org/TR/html4/loose.dtd" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title> Set Header footer </title>
<script language= "JavaScript" >
var hkey_rootpath= "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet explorer\\pagesetup\\";
function Pagesetup_del () {
try{
var wsc=new activexobject ("Wscript.Shell");
hkey_key= "Header";
Wsc.regwrite (Hkey_rootpath+hkey_key, "");
hkey_key= "Footer";
Wsc.regwrite (Hkey_rootpath+hkey_key, "");
}catch (e) {}
}
function Pagesetup_set () {
try{
var wsc=new activexobject ("Wscript.Shell");
hkey_key= "Header";
Wsc.regwrite (Hkey_rootpath+hkey_key, "&w&b page, &p/&p");
hkey_key= "Footer";
Wsc.regwrite (Hkey_rootpath+hkey_key, "&u&b&d");
}catch (e) {}
}
</script>
<body>
<object id= "WebBrowser" classid= "clsid:8856f961-340a-11d0-a96b-00c04fd705a2" width= "0" height= "0" >
</object>
<table width= "650" border= "1" align= "center" cellspacing= "0" bordercolorlight= "#FE7529" bordercolordark= "#FFFFFF" >
<TR align= "center" bgcolor= "#FE7529" >
<TD height= ">" Customer Name </td>
<td> Telephone </td>
<TD > Contacts </td>
<td> Contact Phone </td>
<td>E-mail</td>
<td> Area </td>
</tr>
<tr>
<TD height= > Hui Group </td>
<td>0432-65412**</td>
<td> Senior Manager </td>
<td>137562112**</td>
<td>[email protected]***.com</td>
<td> Jilin </td>
</tr>
<tr>
<TD height= "> Jilin Province Tomorrow Technology Co., Ltd. </td>
<td>0431-84972266</td>
<td> Manager </td>
<td>137563185**</td>
<td>[email protected]</td>
<td> Changchun </td>
</tr>
<tr>
<TD height= "> Xin * * * * Co., Ltd. </td>
<td>0431-65412***</td>
<td> Manager Wang </td>
<td>13756211***</td>
<td>[email protected]*****.com</td>
<td> Changchun </td>
</tr>
<tr>
<TD height= "> East * * * Communication company </td>
<td>0434-56167**</td>
<td> manager Lee </td>
<td>1375631***4</td>
<td>[email protected]</td>
<td> Siping </td>
</tr>
</table>
<table width= "647" align= "center" >
<TR align= "center" bgcolor= "#FFFFFF" >
<TD height= "colspan=" 3 "align=" right "><a href=" # "onclick=" Pagesetup_del () "> Empty header Footer </a><a href= "#" onclick= "Pagesetup_set ()" > Restore header Footer </a><a href= "#" onclick= "DOCUMENT.ALL.WEBBROWSER.EXECWB (7,1) > Print preview </a> <a href= "#" onclick= "DOCUMENT.ALL.WEBBROWSER.EXECWB (6,1)" > Print </a> <a href= "#" onclick= "DOCUMENT.ALL.WEBBROWSER.EXECWB (6,6)" > Direct printing </a> <a href= "#" onclick= " DOCUMENT.ALL.WEBBROWSER.EXECWB (8,1) > Page Setup </a></td>
</tr>
</table>
</body>
JS Call printer (can clear header footer)