是否有网站提示您需要启用 JavaScript 才能恰当查看网页?如未启用 JavaScript,您可能无法填写在线表单,或者无法找到按钮及其他网页要素。JavaScript 是许多网站的基本组成部分,只有启用该功能,您才能畅享 Web 浏览体验。但是有时,您可能需要关闭 JavaScript 以保护您的个人隐私,因此,如需重新启用,请按照本指南的说明,对您所使用的浏览器进行设置。
步骤
方法 1 的 5:
Internet Explorer
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/48\/Enable-JavaScript-on-Your-Computer-Step-1-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-1-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/48\/Enable-JavaScript-on-Your-Computer-Step-1-Version-2.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-1-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
1
单击右上角的齿轮图标。 从出现的菜单中选择“Internet 选项”。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/7\/71\/Enable-JavaScript-on-Your-Computer-Step-2-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-2-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/7\/71\/Enable-JavaScript-on-Your-Computer-Step-2-Version-2.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-2-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
单击“安全”选项卡。 单击窗口底部的“自定义级别”按钮,弹出“安全设置”对话框。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/2\/27\/Enable-JavaScript-on-Your-Computer-Step-3-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-3-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/2\/27\/Enable-JavaScript-on-Your-Computer-Step-3-Version-2.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-3-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
找到“脚本”目录。 单击“活动脚本”下的“启用”选项,选择此选项后将允许 Internet Explorer 在页面上显示 JavaScript 元素。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/7\/78\/Enable-JavaScript-on-Your-Computer-Step-4-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-4-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/7\/78\/Enable-JavaScript-on-Your-Computer-Step-4-Version-2.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-4-Version-2.jpg","smallWidth":460,"smallHeight":345,"bigWidth":728,"bigHeight":546,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
4
两次单击“确定”按钮关闭窗口。 单击“刷新”按钮,用新设置重新载入网页。
方法 2 的 5:
Chrome
1
单击 Chrome 菜单按钮。 该按钮位于窗口右上角,外观看上去就像三条短平行线。从出现的菜单中选择“设置”。
或者,您也可以在地址栏中直接输入 chrome://settings/ 后按回车键。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/d\/dc\/Enable-JavaScript-on-Your-Computer-Step-5Bullet1.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-5Bullet1.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/d\/dc\/Enable-JavaScript-on-Your-Computer-Step-5Bullet1.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-5Bullet1.jpg","smallWidth":460,"smallHeight":150,"bigWidth":728,"bigHeight":237,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0a\/Enable-JavaScript-on-Your-Computer-Step-6-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-6-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0a\/Enable-JavaScript-on-Your-Computer-Step-6-Version-2.jpg\/v4-600px-Enable-JavaScript-on-Your-Computer-Step-6-Version-2.jpg","smallWidth":460,"smallHeight":230,"bigWidth":600,"bigHeight":300,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
单击“显示高级设置”链接。 在“隐私”部分中,单击“内容设置…”按钮。此操作将打开一个新窗口。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/0\/0f\/Enable-JavaScript-on-Your-Computer-Step-7-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-7-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/0\/0f\/Enable-JavaScript-on-Your-Computer-Step-7-Version-2.jpg\/v4-689px-Enable-JavaScript-on-Your-Computer-Step-7-Version-2.jpg","smallWidth":460,"smallHeight":374,"bigWidth":689,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
找到“JavaScript”部分。 确保开启“允许所有站点运行 JavaScript(推荐)”。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/46\/Enable-JavaScript-on-Your-Computer-Step-8-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-8-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/46\/Enable-JavaScript-on-Your-Computer-Step-8-Version-2.jpg\/v4-689px-Enable-JavaScript-on-Your-Computer-Step-8-Version-2.jpg","smallWidth":460,"smallHeight":374,"bigWidth":689,"bigHeight":560,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
4
查看例外站点。 您正在尝试加载的网站可能已被添加到例外列表,因此即使浏览器启用了 JavaScript,该网站仍被阻止载入。请单击“管理例外…”按钮,查看已禁用的网站中是否存在您需要启用 JavaScript 的网站。[1]
方法 3 的 5:
Firefox
1
检查浏览器是否运行了拦截 JavaScript 的扩展件。 Firefox默认启用 JavaScript,通常您只能通过运行扩展件来禁用。如要查看已安装的扩展件,请单击 FireFox(或“工具”)菜单并选择“附加组件”,打开“附加组件管理器”。
单击窗口左侧的“扩展”选项卡。使用较普遍的 JavaScript 拦截扩展件有 No-Script、QuickJava 和 SettingSanity 等。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/4\/4d\/Enable-JavaScript-on-Your-Computer-Step-9Bullet1.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/4d\/Enable-JavaScript-on-Your-Computer-Step-9Bullet1.jpg\/v4-450px-Enable-JavaScript-on-Your-Computer-Step-9Bullet1.jpg","smallWidth":460,"smallHeight":358,"bigWidth":450,"bigHeight":350,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
单击正在拦截 JavaScipt 的扩展件,点击“禁用”或“删除”按钮。
重启 Firefox,并尝试载入含有 JavaScript 的网页。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/1\/1b\/Enable-JavaScript-on-Your-Computer-Step-10-Version-2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-10-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/1\/1b\/Enable-JavaScript-on-Your-Computer-Step-10-Version-2.jpg\/v4-500px-Enable-JavaScript-on-Your-Computer-Step-10-Version-2.jpg","smallWidth":460,"smallHeight":184,"bigWidth":500,"bigHeight":200,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
2
检查 Firefox 高级设置。 在 Firefox 的配置文件中,有一个不易察觉的选项可启用或禁用 JavaScript。如要查看您是否意外禁用了该选项,可在 Firefox 地址栏中输入 about:config 并按回车键。
阅读警告消息并单击“我保证会小心”按钮。更改这些文件和设置可能会导致您的 Firefox 无法使用。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/8\/8c\/Enable-JavaScript-on-Your-Computer-Step-10Bullet1.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-10Bullet1.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/8\/8c\/Enable-JavaScript-on-Your-Computer-Step-10Bullet1.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-10Bullet1.jpg","smallWidth":460,"smallHeight":144,"bigWidth":728,"bigHeight":228,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
在页面顶部的搜索栏中,输入 javascript.enabled 并按回键。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/4\/44\/Enable-JavaScript-on-Your-Computer-Step-10Bullet2.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-10Bullet2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/4\/44\/Enable-JavaScript-on-Your-Computer-Step-10Bullet2.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-10Bullet2.jpg","smallWidth":460,"smallHeight":162,"bigWidth":728,"bigHeight":257,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
javascript.enabled 的值应为 true。如果显示为“false”,则在该条目上单击右键,并选择“切换”。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/thumb\/9\/92\/Enable-JavaScript-on-Your-Computer-Step-10Bullet3.jpg\/v4-460px-Enable-JavaScript-on-Your-Computer-Step-10Bullet3.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/9\/92\/Enable-JavaScript-on-Your-Computer-Step-10Bullet3.jpg\/v4-728px-Enable-JavaScript-on-Your-Computer-Step-10Bullet3.jpg","smallWidth":460,"smallHeight":162,"bigWidth":728,"bigHeight":257,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
重启 Firefox 并尝试载入含有 JavaScript 的页面。
{"smallUrl":"https:\/\/www.zenmeban.com\/images_en\/a\/ac\/Enable-JavaScript-on-Your-Computer-Step-11-Version-2.jpg","bigUrl":"https:\/\/www.zenmeban.com\/images\/thumb\/a\/ac\/Enable-JavaScript-on-Your-Computer-Step-11-Version-2.jpg\/v4-450px-Enable-JavaScript-on-Your-Computer-Step-11-Version-2.jpg","smallWidth":460,"smallHeight":204,"bigWidth":450,"bigHeight":200,"licensing":"<div class=\"mw-parser-output\"><\/div>"}
3
重新安装 Firefox。 如果其他所有方法失败,则请卸载和重新安装 Firefox 以恢复所有默认设置。由于 JavaScript 是 Firefox 浏览器的基础,重新安装应当能恢复其功能。[2]
方法 4 的 5:
Safari
1
单击 Safari 菜单。 选择“偏好”,然后单击“安全”选项卡。
2
确保“启用 JavaScript”选项已勾选。 如未勾选复选框,则 JavaScript 在网页上不载入。[3]
3
在 iOS 设备上启用 Java。 点击“设置”图标,向下滚动至 Safari 部分。点击“高级”,然后将 JavaScript 选项切换到“开启”。[4]
方法
5
方法 5 的 5:
Opera
1
单击 Opera 菜单。 在“设置”选项上方悬停鼠标。
如找不到 Opera 菜单,只看到传统菜单栏,则单击“工具”。
2
在“快速偏好”上方悬停鼠标。 勾选名为“启用 JavaScript”的复选框。
3
刷新当前网页。 这将载入您的新设置。[5]
小提示
Java 和 JavaScript 互不相关,需要分别单独启用。如要在您的计算机上启用 Java,请参阅 wikiHow 指南《如何启用 Java》。