Create Popup Cookies Consent Box in HTML CSS & JavaScript | Set Cookie JavaScript

Поделиться
HTML-код
  • Опубликовано: 20 май 2024
  • This video tutorial will teach you to Create Popup Cookies Consent Box in HTML CSS & JavaScript. With the webpage loading, this cookies consent modal box appears. If the user clicks on the decline button, it hides until the page gets refreshed and if the user clicks on the accept button, the cookies consent box will be hidden for a month. After a month the cookie consent box will appear again.
    ---
    🔗 Links
    ✅ Download Source Code From Here
    ➤ www.codinglabweb.com
    ✅ JavaScript Projects
    ➤ • JavaScript Projects
    ✅ Card Design
    ➤ • Card Design in HTML CS...
    ---
    ⌚ Timestamps:
    00:00 Demo of the Cookies consent modal box
    01:27 File Structure
    01:50 Working on HTML
    03:10 Working on CSS
    08:16 Working on JavaScript
    11:51 Setting cookie for a month
    12:30 Final result of the Cookies consent modal box
    #Popup_Modal_Box #Cookies_Box #HTML_CSS_JavaScript
    ---
    🎵 Music Credit:
    Deep Sea by Vendredi / vendrediduo
    Creative Commons - Attribution 3.0 Unported - CC BY 3.0
    Free Download / Stream: bit.ly/-deep-sea
    Music promoted by Audio Library • Deep Sea - Vendredi (N...
    Ikson - We Are Free (Vlog No Copyright Music)
    • Ikson - We Are Free (V...

Комментарии • 22

  • @lyubon9492
    @lyubon9492 5 месяцев назад

    I just needed the JavaScript part with the cookie and it works perfectly. Thank you so much for this video. Very helpful : )

  • @crissantanna6555
    @crissantanna6555 Год назад +4

    thank you!!!! how can I make the cookie window disappear when the person clicks reject?

  • @tioem3399
    @tioem3399 Год назад +1

    Easy to follow and worked like a charm! Thank you!

  • @aertic3747
    @aertic3747 Год назад

    Hey, is it possible to use more of your stuff, like this password strength and email validation etc. on one screen at the same time on the site? If so, how?

  • @LaurianeBL
    @LaurianeBL 9 месяцев назад

    Hello and thanks for the tutorial but the pop up keeps showing after i refresh the page when i click on decline... do you have a solution ? Thank you :)

  • @lucblouin2747
    @lucblouin2747 5 месяцев назад

    Very good! Thank a lot ! It works fine except how can I make the cookies window disappear when the person clicks decline? I would just like the box not to recharge when the user refuses. Please tell me if you have a solution?

  • @social.knowledge_0
    @social.knowledge_0 Год назад

    Thanks you

  • @truegoldenhands
    @truegoldenhands 11 месяцев назад

    very good and useful ´work!

  • @almannazyrov394
    @almannazyrov394 Год назад +5

    Can you explain for what cookies are used for? If a user accepts it, what will be next, like we would know the user's information?

    • @CodingLabYT
      @CodingLabYT  Год назад +3

      Cookies are small pieces of text sent to your browser by a website you visit. They help that website remember information about your visit, which can both make it easier to visit the site again and make the site more useful to you. The cookie box I have made is set only one cookie value which name is codinglab, and until that cookie expired model box will not come if you click on accept button. That cookie is for only that model box.

    • @benjawiBen
      @benjawiBen Год назад +3

      A good example of cookies is when you tick a box on a login page that says to remember your login for something like 30 days. Sets a cookie for 30 days and saves you having to log into that website every time. If you don't accept cookies on that website, then the remember me function won't work.

  • @lorenzolin4959
    @lorenzolin4959 Год назад

    Hello guys, should i use it on every page of the website? or just write it on 1 page?

    • @yenvi1546
      @yenvi1546 9 месяцев назад +1

      You should put it on your index or home page! So use it only once :)

  • @mar4974
    @mar4974 8 месяцев назад

    what is the use of cookies?

    • @AjPrince7
      @AjPrince7 3 месяца назад

      You don't need to signin again in a website

  • @omorfaruk6986
    @omorfaruk6986 Год назад

    please give html css full website design tutorial

    • @CodingLabYT
      @CodingLabYT  Год назад +1

      Here they are - ruclips.net/video/Xuso8gekEdg/видео.html
      ruclips.net/video/gUxIzo3gj-g/видео.html

  • @AbhinavMishraA-wc3ky
    @AbhinavMishraA-wc3ky Год назад

    @CodingLab Hi men! Please create a video on how to create a login system using cookie 🍪! In js. Pin me!

  • @enderbenderplayz5189
    @enderbenderplayz5189 Год назад

    source code?