JavaScript or Scripts Are Being Blocked

By Adrian Grahams

Modify your Web browser's security settings to unblock scripts on websites.
i Alexander Hassenstein/Getty Images News/Getty Images

Updating a Web browser or changing its security settings can sometimes block JavaScript and other scripting languages from running on websites. If certain website features stop working, or you receive script-based error messages when trying to access a website with your Web browser, troubleshoot the problem by modifying the browser’s security settings.

About Scripts

Webmasters use JavaScript and other scripting languages to add dynamic and interactive features to websites and to display certain design elements on individual Web pages. The scripts are mini-programs that run inside your Web browser to display the feature; for example, an interactive image gallery or the behavior of the website’s navigation menus.

Security Settings

Most Web browsers allow JavaScript and other scripting languages by default. However, adjusting the browsers main security settings can change the default settings and disable JavaScripts and other scripts. If the script function isn’t working on the browser, you won’t be able to use all the features on the Web page, and some websites won’t display correctly in the browser. The browser may also display an error message.

Enabling Scripts

All Web browsers include advanced security settings that you can modify to allow scripts written in JavaScript and other scripting languages. In Google Chrome, enable scripts by clicking the “Settings” button with the wrench icon in the navigation bar. Select “Under the Hood” in the left menu, and then click “Content Settings.” In the JavaScript settings section, click the radio button beside “Allow All Sites To Run JavaScript” to enable scripts. In Firefox, you’ll find the script settings in the Add-Ons section of the Tools menu. Click the “Enable” button next to “Java Platform” and “Java Toolkit.” In Microsoft Internet Explorer, go to the “Custom Level” section on the “Security” tab of Internet Options. Click and enable the “Scripting of Java Applets” and “Active Scripting” radio buttons. For all browsers, remember to save your settings after changing settings.


Enabling scripts is safe for most websites. However, some hackers can use scripts to hijack your Web browser or install malicious software on your computer. Never visit a website if you receive a warning from your computer’s anti-virus or firewall software when you try to go to the page in your Web browser. If you need to visit websites that you don’t entirely trust, you can configure most browsers to block scripts on just these sites. When enabling JavaScript and scripting in your browser’s settings, use the “Manage Exceptions” feature to add websites to the browser’s script block list.