PDF download Download Article
Easily enable cookies & JavaScript to stop browser errors
PDF download Download Article

Many websites use JavaScript to display content, and cookies to support features like login and online shopping. If a website isn't displaying properly, you can't use certain features, or you see an error like "enable JavaScript and cookies to continue," cookies and/or JavaScript are likely turned off. This quick and easy guide will teach you how to enable JavaScript and cookies in Chrome, Safari, Microsoft Edge, and Mozilla Firefox, and DuckDuckGo browser on any device, whether you're using a computer, phone, or tablet.

Enable Cookies & JavaScript in Chrome: Quick Steps

  1. Click the menu â‹® and go to Settings > Privacy and security.
  2. Select Allow third-party cookies.
  3. Go to Site Settings > Additional content settings > On-device site data.
  4. Select Allow sites to save data on your device and click the back button.
  5. Click JavaScript and select Sites can use JavaScript.
Method 1
Method 1 of 10:

Google Chrome on a Computer

PDF download Download Article
  1. You'll see the three-dot menu at the top-right corner of Chrome on your PC, Mac, or Chromebook.
  2. It's on the left panel.[1]
    Advertisement
  3. If you only want to change your settings for third-party cookies, such as those that track you across websites, click Third-party cookies under "Privacy and security," and then select Allow third-party cookies.[2]
    • This does not enable all cookies if you've disabled them. Google has moved this setting to a more hidden area, which we'll go to next.
    • Click the back button when you're finished to return to the previous screen.
  4. It's under "Privacy and security."
  5. If you don't see this option at the bottom of the menu, skip to the next step.
  6. It's the last option on the page.
  7. The first option on this page enables cookies throughout Chrome.
    • Click the back button once to return to the previous page.
  8. It's under the "Content" header.
  9. If JavaScript was disabled, this re-enables it.[3]
    • You may also want to ensure there aren't any sites in the "Not allowed to use JavaScript" section in the lower half of this page.
  10. Advertisement
Method 2
Method 2 of 10:

Google Chrome for Android

PDF download Download Article
  1. It's in the top-right corner of the screen. A drop-down menu will appear.
    • Cookies and Java are both enabled on Chrome for iPhone and iPad by default. There's no way to turn either on or off—they are both always on.
    • Chrome no longer has a simple "Cookies" switch. Instead, your browser allows you to enable or disable third-party cookies (those that track you across websites) or enable/disable "on-device site data." If you want to enable the useful cookies, such as the ones that keep you signed in to websites, you'll want to enable "On-device site data."
  2. You may have to scroll down to see it.[4]
  3. You'll see it under "Advanced."[5]
  4. As long as this switch is enabled, websites can save cookies on your Android.[6]
  5. It's in the top-left corner of the screen.
  6. If you also want to allow websites to leave third-party cookies on your Android, tap Third-party cookies and then select Allow third-party cookies.[7]
    • If you change this setting, tap the Back button to return to the previous menu.
  7. This option is near the middle of the Site Settings page.
  8. Advertisement
Method 3
Method 3 of 10:

Safari on a Mac

PDF download Download Article
  1. You'll see Safari in the menu bar at the top of the screen when Safari is open on your Mac.[8]
  2. If cookies were blocked, this re-enables them.
    • If you don't want websites to be able to track your browsing on other websites you visit, return to settings, click Privacy, and then select Prevent cross-site tracking.[9]
  3. It's the padlock icon at the top of the window.[10]
  4. If this box was already checked, there's nothing to change; JavaScript was on already. But if it was off, checking this box will turn it back on.[11]
  5. Advertisement
Method 4
Method 4 of 10:

Safari on iPhone or iPad

PDF download Download Article
  1. 2
    Scroll down and tap Apps. It's all the way at the bottom of the menu.[12]
  2. 3
    Scroll down and tap Safari. This opens your Safari settings.
  3. It's at the bottom of the menu.[13]
  4. Advertisement
Method 5
Method 5 of 10:

Microsoft Edge on a Computer

PDF download Download Article
  1. You'll see the menu at the top-right corner of Edge on your PC or Mac.
  2. 2
    Click Privacy, search, and services. It's in the left panel.[16]
  3. 3
    Click Site permissions. This opens an additional menu.
  4. 4
    Click All permissions. It's the last option.
  5. 5
    Scroll down and click On-device site data. It's near the bottom of the right panel.
  6. 6
    Select Allow sites to save data on your device. This allows Edge to save cookies on your computer.
    • This doesn't enable third-party cookies, which are usually the ones meant for advertising and tracking. If you want to enable third-party cookies, you can do so in Settings > Privacy, search, and services > Cookies > Allow third-party cookies.
  7. It's at the top-left corner of the right pane. This returns you to the "All permissions" page.
  8. It's close to the top of the right panel. about halfway down the right side of the page.
  9. Advertisement
Method 6
Method 6 of 10:

Microsoft Edge on Mobile

PDF download Download Article
  1. You'll see these three lines at the bottom-right corner of Edge on your Android, iPhone, or iPad.
    • Microsoft Edge for mobile devices doesn't give you an option to disable JavaScript. JavaScript is always on, so there's no need to enable it.
  2. 3
    Scroll down and tap Site Settings. It's near the bottom of the menu.
  3. 4
    Tap Don't block cookies. Alternatively, if you want to block tracking/third-party cookies in Edge without affecting your web browsing, you can select Block only third party cookies instead.[18]
  4. Advertisement
Method 7
Method 7 of 10:

Firefox on a Computer

PDF download Download Article
  1. If you're using a PC, you'll see the three-line menu at the top-right corner of Firefox. On a Mac, you can click the Firefox menu at the top of the screen and select Settings.[19]
    • JavaScript is permanently enabled on Firefox, but you can still change your cookie preferences.
    • If you're encountering JavaScript errors in Firefox, uninstall and then reinstall Firefox.
  2. It's on the left panel.
  3. It's the first of the three tracking settings. This option allows all cookies, including third-party cookies that track you across different websites.
    • Alternatively, if you're using a Custom setting, you can just check the box next to "Cookies" to enable them.
    • If you'd rather not allow cross-site cookies to track you, select Strict instead. This could make websites act a little differently than expected, so if you run into problems, return to this screen and select Standard instead.
  4. Advertisement
Method 8
Method 8 of 10:

Firefox on Mobile

PDF download Download Article
  1. It's the three dots at the top-right corner on Android, or at the bottom of the screen on an iPhone.
    • JavaScript is turned on by default in Firefox on Android and iOS—it's not possible to turn it on and off manually.
  2. It's the gear icon at the bottom of the menu.
  3. It's under the "Privacy" header.
    • If you don't see this option, tap Enhanced Tracking Protection instead.
  4. 4
    Select Standard as the "Protection Level." This option blocks the most harmful tracking and advertising cookies while still allowing important cookies (and some cross-site cookies).
    • If you want to allow all cookies, including tracking and third-party cookies, you can toggle off "Enhanced Tracking Protection" instead.
  5. Advertisement
Method 9
Method 9 of 10:

DuckDuckGo on a Computer

PDF download Download Article
  1. 1
    Click the menu in the DuckDuckGo web browser ☰. Like other browsers, DuckDuckGo has cookies enabled by default so that the websites you visit work as intended. However, some DuckDuckGo cookie settings may block cookies you need–you can use this method to turn off those advanced settings.[20]
    • There is no option to disable JavaScript in DuckDuckGo.
  2. 2
    Click Settings. It's near the bottom of the menu.
  3. 3
    Click Cookie Pop-Up Protection. It's in the left panel.
  4. 4
    Turn off "Auto-Manage Cookie Pop-ups". If you're getting cookie errors, it may be because this feature is enabled. Uncheck the box to disable it.
  5. 5
    Turn off Web Tracking Protection if needed (optional). First, try browsing the web after making the previous change. If you run into more cookie problems, return to Settings, click Web Tracking Protection in the left panel, and uncheck "Enable Global Privacy Control." This feature blocks tracking cookies, and some websites require you to accept some cookies like this for functionality.[21]
  6. Advertisement
Method 10
Method 10 of 10:

DuckDuckGo on Mobile

PDF download Download Article
  1. 1
    Tap the menu in the DuckDuckGo web browser ☰. It'll be at the top of your browser on Android, and at the bottom on an iPhone or iPad. Like other browsers, DuckDuckGo has cookies enabled by default so that the websites you visit work as intended. However, some DuckDuckGo cookie settings may block cookies you need–you can use this method to turn off those advanced settings.[22]
    • There is no option to disable JavaScript in DuckDuckGo.
  2. 2
    Tap Settings. It's the gear icon at the top-right corner.
  3. 3
    Tap Cookie Pop-Up Protection. It's under the "Privacy Protections" heading.
  4. 4
    Toggle off "Auto-Manage Cookie Pop-ups". If you're getting cookie errors, it may be because this feature is enabled. Tapping the switch will disable the feature.
  5. 5
    Turn off Web Tracking Protection if needed (optional). First, try browsing the web after making the previous change. If you run into more cookie problems, return to Settings, tap Web Tracking Protection, and tap the switch next to "Global Privacy Control (GPC)" to turn off tracking protection. This feature blocks tracking cookies, and some websites require you to accept some cookies like this for functionality.[23]
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can I enable cookies on an iPad?
    Community Answer
    Community Answer
    Yes. Tap Safari, Settings and tap Enable Cookies. Or, check if your history is not set on Private. If it is, tap it to say Not Private.
  • Question
    Can I enable JavaScript on an iPad?
    Evan Thomas
    Evan Thomas
    Community Answer
    No, you are not able to enable JavaScript using Safari. If you download the "Puffin" web browser from the app store, it has JavaScript built in, so you can use it there.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Did this article help you? Say thanks with a small tip.
icon
$1
$3
$5
Leave a Tip
Support our mission to help everyone in the world learn how to do anything.

Video

Tips

  • Cookies may be either first-party or third-party. First-party cookies are cookies from the website you are visiting. Third-party cookies track you across several sites, allowing advertisers to target ads toward your preferences. Allowing third-party cookies is the default setting for most web browsers.
  • Cookies are bits of data that websites save to your computer, allowing the sites to personalize your experience. JavaScript is common and makes it possible for your web browser to display richer content.
  • In most web browsers, both cookies and JavaScript are enabled by default; you really shouldn't have to enable them unless you or someone else have previously disabled them.
Show More Tips
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Delete Tracking Cookies7 Ways to Delete Tracking Cookies on Desktop & Mobile
Clear Your Browser's Cookies Clear Your Browser's Cookies: Complete Guide
Enable Cookies in Firefox Enable or Disable Cookies in Mozilla Firefox
Enable Java in Firefox Activate Java in Firefox: A Step-by-Step Guide
Enable JavaScript Turn On JavaScript: Easy Steps for Chrome, Safari, Edge, More
Enable Cookies in Your Internet Web BrowserEnable Cookies in Your Internet Web Browser
Enable Cookies in Safari Enable Cookies in Safari on an iPhone, iPad, or Mac Browser
Disable JavaScript Turn Off JavaScript on Chrome, Safari, Edge, and More
Enable Cookies on Google ChromeEnable Cookies on Google Chrome
Disable Cookies Block Cookies in Your Browser: Step-by-Step Guide
Enable JavaScript on a Mac Enable JavaScript in a Browser on a Mac
Allow 3rd Party Cookies on a MacAllow 3rd Party Cookies on a Mac
Allow Pop–upsAllow Pop–ups
Fix if You Can't Access a Particular Website Fix If You Can't Access a Particular Website
Advertisement

Expert Interview

Thanks for reading our article! If you’d like to learn more about computers and technology, check out our in-depth interview with Luigi Oppido.

About This Article

Luigi Oppido
Co-authored by:
Computer & Tech Specialist
This article was co-authored by Luigi Oppido and by wikiHow staff writer, Nicole Levine, MFA. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over 7 years. This article has been viewed 991,421 times.
How helpful is this?
Co-authors: 24
Updated: August 9, 2026
Views: 991,421
Categories: Internet Browsers
Article SummaryX

If you're using Google Chrome on your PC or Mac, both JavaScript and cookies are enabled by default. If you're having trouble viewing or staying signed in to websites, you'll want to check your settings. In Chrome, click the three vertical dots at the top-right corner, and then select "Settings." Click "Privacy and Security" in the left panel. In the right panel, click "Cookies and site data." If you want to allow all cookies, select "Allow all cookies." You can also choose to allow most cookies while blocking tracking cookies from advertisers—to do this, select "Block third-party cookies." Now, click the back button in Chrome to return to your settings, and then click "Site Settings" in the right panel. Next, scroll down to the Content section and click "JavaScript" – If the switch is on and you see "Allowed (recommended)," JavaScript is turned on. If not, click the switch to enable it now. If you've blocked JavaScript for any websites, they'll appear under the "Block" header. You can unblock JavaScript on a website by clicking the three vertical dots next to the site's address and selecting "Remove." Your changes will take effect immediately.

Did this summary help you?

Thanks to all authors for creating a page that has been read 991,421 times.

Reader Success Stories

  • Anonymous

    Anonymous

    May 10, 2017

    "It showed in detail what to do!"
Share your story

Is this article up to date?

Advertisement