jQuery.PrintArea.Extend.js 423 B

1234567891011
  1. var PrintArea = {
  2. Remove_IE_Header_And_Footer: function () {
  3. var hkey_root, hkey_path, hkey_key;
  4. hkey_path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
  5. try {
  6. var RegWsh = new ActiveXObject("WScript.Shell");
  7. RegWsh.RegWrite(hkey_path + "header", "");
  8. RegWsh.RegWrite(hkey_path + "footer", "");
  9. } catch (e) { }
  10. }
  11. };