This wikiHow teaches you how to turn on cookies and JavaScript in most popular web browsers. 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. If either are disabled, websites may not display as intended. JavaScript and cookies are both turned on by default in the majority of web browsers, but many browsers allow you to enable or disable them as needed.

Method 1
Method 1 of 7:

Google Chrome on a Computer

  1. 1
    Open Google Chrome on your computer. You'll find it in your Windows Start menu or on your Mac's Launchpad.
  2. 2
    Click the three-dot menu . It's at the top-right corner of Chrome.
    Advertisement
  3. 3
    Click Settings. It's near the bottom of the menu.
  4. 4
    Click Site Settings. It's under the "Privacy and security" header in the right panel.
  5. 5
    Click Cookies and site data. It's the first option in the "Content" section.
  6. 6
    Choose which cookies to allow. To turn on all cookies, select Allow all cookies.
    • If you'd rather websites not be able to see your browsing activity on other sites, select Block third-party cookies instead. This might make some websites act a little different than you'd expect—if so, just return here and switch to Allow all cookies instead.
  7. 7
  8. 8
    Click <> JavaScript. It's under the "Content" header, right under the "Cookies and site data" option you clicked before.
  9. 9
    Select "Sites can use Javascript." It's toward the top of the page. 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 7:

Google Chrome for Android

  1. 1
    Open Chrome on your Android. Tap the red, green, yellow, and blue spherical app icon in your app list.
    • 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.
  2. 2
    Tap the three-dot menu . It's in the top-right corner of the screen. A drop-down menu will appear.
  3. 3
    Tap Settings on the menu. You may have to scroll down to see it.
  4. 4
    Scroll down and tap Site settings. It's near the bottom of the page.
  5. 5
    Tap Cookies. You'll find this option near the top of the screen.
  6. 6
  7. 7
    Tap the "Back" button. It's in the top-left corner of the screen.
  8. 8
    Tap JavaScript. This option is near the middle of the Site Settings page.
  9. 9
  10. Advertisement
Method 3
Method 3 of 7:

Safari on a Mac

  1. 1
    Open Safari. It's a blue, red, and white compass icon in the Dock, which is usually at the bottom of the screen.
  2. 2
    Click the Safari menu. It's in the menu bar at the top of the screen.[2]
  3. 3
    Click Preferences on the menu. It's toward the top of the menu.
  4. 4
    Click the Privacy tab. It's the blue icon with a white hand at the top of the window.
  5. 5
    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, select Prevent cross-site tracking.
  6. 6
    Click the Security tab. It's the padlock icon at the top of the window.
  7. 7
    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.
  8. Advertisement
Method 4
Method 4 of 7:

Safari for iPhone or iPad

  1. 1
  2. 2
    Scroll down and tap Safari. It's about a third of the way down the Settings page.
  3. 3
  4. 4
    Scroll down and tap Advanced. It's at the bottom of the menu.
  5. 5
  6. Advertisement
Method 5
Method 5 of 7:

Firefox on a Computer

  1. 1
    Open Firefox. You'll find it in your Windows Start menu or your Mac's Applications folder.
    • 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. 2
    Open your Firefox Settings. The steps are a little different depending on your operating system:
    • Windows: Click the three horizontal lines at the top-right corner and select Settings.
    • Mac: Click the Firefox menu at the top of the screen and select Preferences.[3]
  3. 3
    Click the Privacy & Security tab. It's in the left panel.
  4. 4
    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.
    • If you'd rather not allow cross-site cookies to track you, select Strict instead. This could make websites act a little different than you'd expect, so if you run into problems, return to this screen and select Standard instead.
  5. Advertisement
Method 6
Method 6 of 7:

Firefox for Mobile

  1. 1
    Open Firefox. Tap the Firefox app icon, which is the orange fox wrapped around a purple circle in your app list.
    • JavaScript is turned on by default in Firefox on Android and iOS—it's not possible to turn it on and off manually.
  2. 2
    Tap the three-line menu . It's at the bottom-right corner.
  3. 3
    Tap Settings. It's the gear icon at the bottom of the menu.
  4. 4
    Scroll down and tap Tracking Protection. It's under the "Privacy" header.
  5. 5
    Toggle "Enhanced Tracking Protection" to the Off position . 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.
  6. Advertisement
Method 7
Method 7 of 7:

Microsoft Edge

  1. 1
    Open Microsoft Edge. You'll find its blue-and-green wave icon in your Windows Start menu or your Mac's Launchpad.
  2. 2
    Click the three-dot menu . It's at the top-right corner of Edge. A menu will expand.
  3. 3
    Click Settings on the menu. It's near the bottom of the menu.
  4. 4
    Click the Cookies and site permissions tab. It'll be in the left panel.
  5. 5
    Click Manage and delete cookies and site data. This is the first option in the right panel.
  6. 6
    Turn on the "Allow sites to save and read cookie data" switch . 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.
  7. 7
    Click the back button at the top of the page. It's just above the right panel. This returns you to the previous settings page.
  8. 8
    Scroll down and click JavaScript. It's about halfway down the page.
  9. 9
    Toggle the "Allowed" switch to the On position . 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.
  10. Advertisement

Community Q&A

  • 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.
Advertisement

Warnings

  • Cookies are responsible for many conveniences while browsing, but they also contribute to the types of ads you see. Cookies can also encroach on your privacy.
    ⧼thumbs_response⧽
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. 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 594,361 times.
How helpful is this?
Co-authors: 22
Updated: September 7, 2022
Views: 594,361
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?
Advertisement