How to Turn on Cookies and JavaScript: Quick & Easy Guide

Is a website telling you to "enable scripting" or "enable cookies?" Here's what to do

If cookies or Java are disabled in your web browser, websites may not display as intended. JavaScript and cookies are turned on by default in most web browsers, but many allow you to enable or disable them as needed. This How.com.vn teaches you how to turn on cookies and JavaScript in Chrome, Safari, Microsoft Edge, and Firefox on any device.

Method 1
Method 1 of 8:

Google Chrome on a Computer

Download Article
  1. How.com.vn English: Step 1 Click the three-dot menu and select Settings.
    You'll see the three-dot menu at the top-right corner of Chrome on your PC, Mac, or Chromebook.
  2. How.com.vn English: Step 2 Click Privacy and security.
    It's on the left panel.
    Advertisement
  3. How.com.vn English: Step 3 Allow third-party cookies (optional).
    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.
    • 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. How.com.vn English: Step 4 Click Site settings.
    It's under "Privacy and security."
  5. How.com.vn English: Step 5 Scroll down and click Additional content settings.
    If you don't see this option at the bottom of the menu, skip to the next step.
  6. How.com.vn English: Step 6 Click On-device site data.
    It's the last option on the page.
  7. How.com.vn English: Step 7 Select Allow sites to save data on your device.
    The first option on this page enables cookies throughout Chrome.
    • Click the back button once to return to the previous page.
  8. How.com.vn English: Step 8 Click <> JavaScript.
    It's under the "Content" header.
  9. Step 9 Select "Sites can use JavaScript."
    If JavaScript was disabled, this re-enables it.
    • 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 8:

Google Chrome for Android

Download Article
  1. How.com.vn English: Step 1 Tap the three-dot menu ⋮ in Chrome.
    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. How.com.vn English: Step 2 Tap Settings on the menu.
    You may have to scroll down to see it.
  3. How.com.vn English: Step 3 Scroll down and tap Site settings.
    You'll see it under "Advanced."
  4. Step 4 Toggle on "On-device site data."
    As long as this switch is enabled, websites can save cookies on your Android.[1]
  5. Step 5 Tap the "Back" button.
    It's in the top-left corner of the screen.
  6. How.com.vn English: Step 6 Allow third-party cookies (optional).
    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.[2]
    • If you change this setting, tap the Back button to return to the previous menu.
  7. How.com.vn English: Step 7 Tap JavaScript.
    This option is near the middle of the Site Settings page.
  8. How.com.vn English: Step 8 Tap the grey JavaScript icon switch.
    It will slide right and turn blue or green, which enables JavaScript on all websites.
    • If the JavaScript switch was already blue or green, JavaScript was enabled, and no changes were necessary.
  9. Advertisement
Method 3
Method 3 of 8:

Safari on a Mac

Download Article
  1. How.com.vn English: Step 1 Click the Safari menu and select Settings.
    You'll see Safari in the menu bar at the top of the screen when Safari is open on your Mac.
  2. How.com.vn English: Step 2 Click Advanced.
  3. Step 3 Remove the checkmark from "Block all cookies" if selected.
    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.[3]
  4. How.com.vn English: Step 4 Click the Security tab.
    It's the padlock icon at the top of the window.
  5. Step 5 Check the box next to "Enable JavaScript."
    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.
  6. Advertisement
Method 4
Method 4 of 8:

Safari on iPhone or iPad

Download Article
  1. How.com.vn English: Step 1 Open your iPhone or iPad's icon Settings.
    Tap the grey app with gears on it. You'll typically find this app on the Home screen or in your App Library.
  2. How.com.vn English: Step 2 Scroll down and tap Safari.
    It's about a third of the way down the Settings page.
  3. How.com.vn English: Step 3 Scroll down and tap Advanced.
    It's at the bottom of the menu.
  4. Step 4 Toggle off "Block All Cookies" icon.
    If this switch is already turned off (gray), cookies are enabled. If it's on (green), tap the switch to allow cookies.
  5. Step 5 Turn on "JavaScript" icon.
    If the switch is already green, JavaScript is enabled. If it's off (gray), tapping this switch will enable it again.
  6. Advertisement
Method 5
Method 5 of 8:

Microsoft Edge on a Computer

Download Article
  1. How.com.vn English: Step 1 Click the three-dot menu ⋯ and select Settings.
    You'll see the menu at the top-right corner of Edge on your PC or Mac.
  2. How.com.vn English: Step 2 Click the Cookies and site permissions tab.
    It'll be in the left panel.
  3. How.com.vn English: Step 3 Click Manage and delete cookies and site data.
    This is the first option in the right panel.
  4. Step 4 Turn on the "Allow sites to save and read cookie data" switch icon.
    It's the first switch at the top of the page. As long as this switch is on, cookies are enabled.
    • If you don't want websites to use cookies to track your browsing on other websites, toggle the "Block third-party cookies" switch to On as well.
  5. How.com.vn English: Step 5 Click the back arrow at the top of the page.
    It's at the top-left corner of the right pane. This returns you to the "Cookies and site permissions" page.
  6. How.com.vn English: Step 6 Scroll down and click JavaScript.
    It's about halfway down the right side of the page.
  7. Step 7 Toggle the "Allowed" switch to the On position icon.
    As long as this switch is on (blue), Edge will display JavaScript on websites.
    • Check the "Block" list below the switch to make sure no sites you want to use are there. If you see a site you want to use JavaScript on, click the three dots next to its name and select Remove.
  8. Advertisement
Method 6
Method 6 of 8:

Microsoft Edge on Mobile

Download Article
  1. How.com.vn English: Step 1 Tap the three-line menu in Microsoft Edge.
    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. How.com.vn English: Step 2 Tap Settings.
  3. How.com.vn English: Step 3 Tap Privacy and security.
    It's near the top of the menu.
  4. How.com.vn English: Step 4 Tap Cookies.
    Your options for blocking cookies will appear.
  5. How.com.vn English: Step 5 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.
  6. Advertisement
Method 7
Method 7 of 8:

Firefox on a Computer

Download Article
  1. How.com.vn English: Step 1 Click the Firefox menu and select Settings.
    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.[4]
    • 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. How.com.vn English: Step 2 Click the Privacy & Security tab.
    It's on the left panel.
  3. How.com.vn English: Step 3 Select Standard to enable cookies.
    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 8:

Firefox for Mobile

Download Article
  1. How.com.vn English: Step 1 Tap the menu in Firefox.
    It's the three dots at the top-right corner on Android, or the three lines at the bottom-right on iPhone/iPad.
    • JavaScript is turned on by default in Firefox on Android and iOS—it's not possible to turn it on and off manually.
  2. How.com.vn English: Step 2 Tap Settings.
    It's the gear icon at the bottom of the menu.
  3. How.com.vn English: Step 3 Scroll down and tap Tracking Protection.
    It's under the "Privacy" header.
  4. Step 4 Toggle "Enhanced Tracking Protection" to the Off position icon.
    It's at the top of the screen. Once this feature is turned off, cookies will be re-enabled.
    • If the "Strict" option is selected under "Protection Level," you won't receive cross-site cookies—this means that websites can't use cookies to track your browsing on other sites. If you're okay with these cross-site cookies, select Standard (default) instead.
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can I enable cookies on an iPad?
    How.com.vn English: 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?
    How.com.vn English: 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

      Tips

      • Cookies are bits of data that websites save to your computer, allowing the sites to personalize your experience. JavaScript is a common that makes it possible for your web browser to display richer content.
      • 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.
      • 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
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Nicole Levine, MFA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for How.com.vn. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 841,018 times.
      How helpful is this?
      Co-authors: 23
      Updated: January 24, 2024
      Views: 841,018
      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 841,018 times.

      Reader Success Stories

      • How.com.vn English: Anonymous

        Anonymous

        May 10, 2017

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

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement