<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>IE6 屏蔽JS错误提示</title> <script language='javascript' type="text/javascript"> function ResumeError() { return true; } window.onerror = ResumeError; </script> </head> <body onload="ResumeError()"> 相关JS脚本代码 </body> </html>