Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to set up a javascript cookie

Featured Replies

Hello friends,

I just came across this tutorial of javascript cookiebut wondering how to set up the cookie do i need to place it in the root folder of my site? i also want to know is it gud to set a cookie?

is it used nowadays?

Javascript only works inside a web page on the visitors PC.*

You would need to place the functionsinside the head section of the page that is setting or reading the cookie.

 

 

Are cookies good or bad? - it depends what information you plan to keep in them. But for the most part they are harmless and useful.

 

 

* Javascript can be made to run server side but that's a way more advanced than you are ready for. Plus in this case for placing a cookie it must be run client side.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.