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.
There are 14 references cited in this article, which can be found at the bottom of the page.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 991,421 times.
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.
Steps
-
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.
- Chrome allows you to enable and disable JavaScript and cookies as needed.
-
Click Privacy and security. It's on the left panel.[1]Advertisement
-
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.[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.
-
Click Site settings. It's under "Privacy and security."
-
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.
-
Click On-device site data. It's the last option on the page.
-
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.
-
Click <> JavaScript. It's under the "Content" header.
-
Select "Sites can use JavaScript." 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.
-
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."
-
Tap Settings on the menu. You may have to scroll down to see it.[4]
-
Scroll down and tap Site settings. You'll see it under "Advanced."[5]
-
Toggle on "On-device site data." As long as this switch is enabled, websites can save cookies on your Android.[6]
-
Tap the "Back" button. It's in the top-left corner of the screen.
-
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.[7]
- If you change this setting, tap the Back button to return to the previous menu.
-
Tap JavaScript. This option is near the middle of the Site Settings page.
-
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.[8]
-
Click Advanced.
-
Click the Security tab. It's the padlock icon at the top of the window.[10]
-
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.[11]
-
2Scroll down and tap Apps. It's all the way at the bottom of the menu.[12]
-
3Scroll down and tap Safari. This opens your Safari settings.
-
Scroll down and tap Advanced. It's at the bottom of the menu.[13]
-
Toggle off "Block All Cookies" . If this switch is already turned off (gray), cookies are enabled. If it's on (green), tap the switch to allow cookies.[14]
-
Turn on "JavaScript" . If the switch is already green, JavaScript is enabled. If it's off (gray), tapping this switch will enable it again.[15]
-
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.
-
2Click Privacy, search, and services. It's in the left panel.[16]
-
3Click Site permissions. This opens an additional menu.
-
4Click All permissions. It's the last option.
-
5Scroll down and click On-device site data. It's near the bottom of the right panel.
-
6Select 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.
-
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 "All permissions" page.
-
Click JavaScript. It's close to the top of the right panel. about halfway down the right side of the page.
-
Toggle the "Allowed" switch to the On position . As long as this switch is on (blue), Edge will display JavaScript on websites.[17]
- 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.
-
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.
-
Tap Settings.
-
3Scroll down and tap Site Settings. It's near the bottom of the menu.
-
4Tap 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]
-
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.[19]
-
Click the Privacy & Security tab. It's on the left panel.
-
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.
-
Tap the menu in Firefox. 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.
-
Tap Settings. It's the gear icon at the bottom of the menu.
-
Scroll down and tap Tracking Protection. It's under the "Privacy" header.
- If you don't see this option, tap Enhanced Tracking Protection instead.
-
4Select 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.
-
1Click 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.
-
2Click Settings. It's near the bottom of the menu.
-
3Click Cookie Pop-Up Protection. It's in the left panel.
-
4Turn 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.
-
5Turn 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]
-
1Tap 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.
-
2Tap Settings. It's the gear icon at the top-right corner.
-
3Tap Cookie Pop-Up Protection. It's under the "Privacy Protections" heading.
-
4Toggle 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.
-
5Turn 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]
Community Q&A
-
QuestionCan I enable cookies on an iPad?
Community AnswerYes. 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. -
QuestionCan I enable JavaScript on an iPad?
Evan ThomasCommunity AnswerNo, 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.
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.Thanks
-
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.Thanks
-
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.Thanks
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.
References
- ↑ https://support.google.com/accounts/answer/61416?hl=en&co=GENIE.Platform=Desktop
- ↑ https://support.google.com/accounts/answer/61416?hl=en&co=GENIE.Platform=Desktop
- ↑ https://www.google.com/httpservice/retry/enablejs
- ↑ https://support.google.com/chrome/answer/14114868?sjid=15619355203945709572-NC&co=GENIE.Platform=Android&oco=1
- ↑ https://support.google.com/chrome/answer/14114868?sjid=15619355203945709572-NC&co=GENIE.Platform=Android&oco=1
- ↑ https://support.google.com/chrome/answer/14114868?sjid=15619355203945709572-NC&co=GENIE.Platform=Android&oco=1
- ↑ https://support.google.com/chrome/answer/95647?co=GENIE.Platform=Android&oco=1#zippy=,allow-or-block-third-party-cookies
- ↑ https://support.apple.com/en-euro/guide/safari/prevent-cross-site-tracking-sfri40732/18.0/mac/15.0
- ↑ https://support.apple.com/en-euro/guide/safari/prevent-cross-site-tracking-sfri40732/18.0/mac/15.0
- ↑ https://support.apple.com/en-euro/guide/safari/ibrw1074/mac
- ↑ https://support.apple.com/en-euro/guide/safari/ibrw1074/mac
- ↑ https://support.apple.com/en-euro/guide/iphone/iph1ec277219/ios
- ↑ https://support.apple.com/en-us/105082
- ↑ https://support.apple.com/en-us/105082
- ↑ https://tech.yahoo.com/general/articles/enable-javascript-iphones-settings-app-185732664.html
- ↑ https://support.microsoft.com/en-US/edge/manage-cookies-in-microsoft-edge-view-allow-block-delete-and-use#allow-all-cookies
- ↑ https://support.microsoft.com/en-us/office/enable-javascript-7bb9ee74-6a9e-4dd1-babf-b0a1bb136361
- ↑ https://www.aboutcookies.org.uk/managing-cookies/how-to-enable-cookies-edge
- ↑ https://support.mozilla.org/en-US/kb/websites-say-cookies-are-blocked-unblock-them
- ↑ https://duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections
- ↑ https://duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections
- ↑ https://duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections
- ↑ https://duckduckgo.com/duckduckgo-help-pages/privacy/web-tracking-protections
About This Article
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.












































