瀏覽代碼

Print javascript Content-Type to be HTML 4.0 complient

Bron Gondwana 23 年之前
父節點
當前提交
925cfada42
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/printer_friendly_top.php

+ 2 - 2
src/printer_friendly_top.php

@@ -19,7 +19,7 @@ require_once('../src/load_prefs.php');
 require_once('../functions/page_header.php');
 require_once('../functions/page_header.php');
 
 
 displayHtmlHeader( _("Printer Friendly"),
 displayHtmlHeader( _("Printer Friendly"),
-             "<script language=\"javascript\">\n".
+             "<script language=\"javascript\" type=\"text/javascript\">\n".
              "<!--\n".
              "<!--\n".
              "function printPopup() {\n".
              "function printPopup() {\n".
                 "parent.frames[1].focus();\n".
                 "parent.frames[1].focus();\n".
@@ -41,4 +41,4 @@ echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"
      '</body>'.
      '</body>'.
      "</html>\n";
      "</html>\n";
 
 
-?>
+?>