插入以下程式碼:
code:
<scriptlanguage="JScript">
functionPrintNoHdr()
{
t=newActiveXObject("WScript.Shell");
t.RegWrite("HKCU\\Software\\Microsoft\\InternetExplorer\\PageSetup\\header","");
t.RegWrite("HKCU\\Software\\Microsoft\\InternetExplorer\\PageSetup\\footer","");
window.print()
}
</script>
<form>
<inputtype="button"value="列印該頁"onClick="self.PrintNoHdr()">
</form>
插入以下程式碼:
code:
<scriptlanguage="JScript">
functionPrintNoHdr()
{
t=newActiveXObject("WScript.Shell");
t.RegWrite("HKCU\\Software\\Microsoft\\InternetExplorer\\PageSetup\\header","");
t.RegWrite("HKCU\\Software\\Microsoft\\InternetExplorer\\PageSetup\\footer","");
window.print()
}
</script>
<form>
<inputtype="button"value="列印該頁"onClick="self.PrintNoHdr()">
</form>