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 wikiHow teaches you how to enable JavaScript and cookies in Chrome , Safari , Microsoft Edge, and Firefox on any device.
Quick Steps
- Click the menu in Chrome and go to Settings > Privacy and security .
- Select Allow third-party cookies .
- Go to Site Settings > Additional content settings > On-device site data .
- Select Allow sites to save data on your device and click the back button.
- Click JavaScript and select Sites can use JavaScript .
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.
-
Click Privacy and security . It's on the left panel.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 .
- 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.
- 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.
-
Scroll down and tap Site settings . You'll see it under "Advanced."
-
Toggle on "On-device site data." As long as this switch is enabled, websites can save cookies on your Android. [1] X Research source
-
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 . [2] X Research source
- 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.
-
Tap the grey JavaScript 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.
-
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.
-
Click Advanced .
-
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] X Research source
-
Click the Security tab. It's the padlock icon at the top of the window.
-
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.
-
Open your iPhone or iPad's Settings. Tap the grey app with gears on it. You'll typically find this app on the Home screen or in your App Library.
-
Scroll down and tap Safari . It's about a third of the way down the Settings page.
-
Scroll down and tap Advanced . It's at the bottom of the menu.
-
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.
-
Turn on "JavaScript" . If the switch is already green, JavaScript is enabled. If it's off (gray), tapping this switch will enable it again.
-
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.
-
Click the Cookies and site permissions tab. It'll be in the left panel.
-
Click Manage and delete cookies and site data . This is the first option in the right panel.
-
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.
-
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.
-
Scroll down and click JavaScript . It's 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.
- 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 .
-
Tap Privacy and security . It's near the top of the menu.
-
Tap Cookies . Your options for blocking cookies will appear.
-
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.
-
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] X Research source
-
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 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.
-
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.
-
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.
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 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.Thanks
- 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
- 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/chrome/answer/14114868?sjid=15619355203945709572-NC&co=GENIE.Platform%3DAndroid&oco=1
- ↑ https://support.google.com/chrome/answer/95647
- ↑ https://support.apple.com/guide/safari/prevent-cross-site-tracking-sfri40732/17.0/mac/14.0
- ↑ https://support.mozilla.org/en-US/kb/websites-say-cookies-are-blocked-unblock-them
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.