How to Create a Modal Window For Your Websites - HTML, CSS & JavaScript Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • In this video I'll show you how to create a custom modal window for use on your websites using plain HTML, CSS & JavaScript. This is very easy to do and can be added to your existing web projects.
    Let me know if you have any other ideas for web design/projects! 💻
    Link to source code:
    codepen.io/dco...
    🏫 My Udemy Courses - www.udemy.com/...
    🎨 Download my VS Code theme - marketplace.vi...
    💜 Join my Discord Server - / discord
    🐦 Find me on Twitter - / dcodeyt
    💸 Support me on Patreon - / dcode
    📰 Follow me on DEV Community - dev.to/dcodeyt
    📹 Join this channel to get access to perks - / @dcode-software
    If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
    #dcode #html #javascript

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

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

    A beautifully hand-crafted Modal Window using HTML, CSS and JavaScript. Thanks, Dom!
    {2024-03-24}

  • @garyfox8701
    @garyfox8701 3 года назад +1

    Comprehensive. Excellent work. I am now your pupil.

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

    man you made it all flexed and centered 😀
    very well done

  • @apophis2946
    @apophis2946 3 года назад

    Keep doing these, the javascript examples are great. Seeing real examples of js.

  • @timmyb4204
    @timmyb4204 3 года назад

    Very beautiful, easy to use and implement, and no package dependencies! Easy to follow. Great teacher. Thanks for the awesome content!

  • @RianY2K
    @RianY2K 3 года назад

    thank you for tutorial. This is very useful since modal is always used in every web app

  • @Poyaproduction
    @Poyaproduction 2 года назад

    Brilliant. Thank you 🙏

  • @sbasalan
    @sbasalan 2 года назад

    Thank you Dom, this is very good tutorial. I love it

  • @smoothbeak
    @smoothbeak 3 года назад

    Really good video. Shows how to use HTML, CSS, and JavaScript together without any frameworks or libraries which I feel is very important these days.

  • @nickeax
    @nickeax 3 года назад

    Content as great as it always is from you, thanks!

  • @amircahyadi9219
    @amircahyadi9219 3 года назад

    Brilliant 👍

  • @maksss93
    @maksss93 2 года назад

    nice!
    thank you

  • @Astonoke
    @Astonoke 2 года назад

    omg i love you

  • @joaquinleimeter2084
    @joaquinleimeter2084 2 года назад

    when you use --gap, its just a placeholder for 15px (or a variable) ? or does the gap word have some function? Thanks

  • @donaldmjbart-williams3144
    @donaldmjbart-williams3144 Год назад

    Great content. How do you open the modal without refreshing the browser? can it be assigned to an open link button?

  • @donaldmjbart-williams3144
    @donaldmjbart-williams3144 Год назад

    Hello decode
    Sorry to bother you mate, but I want to use your JavaScript modal in my project. How do you start the modal? currently, it only comes up on refresh.
    How do I assign a link to bring it up? cheers bruv.

  • @mcgrawja
    @mcgrawja 2 года назад

    Great tutorial! Is there a way to make the " Got It" button redirect to a different url for the onClick?

  • @neonpig5819
    @neonpig5819 3 года назад

    I'm having a issue with the database creation for the login form and sign up form of you can please bring a video on that...

  • @henriquevieira857
    @henriquevieira857 3 года назад

    i don't get what is the "var(--gap)" and what it do. Actually i didn't know that there is possible to put variables inside css.

  • @shravankumarreddyjonnalaga2547
    @shravankumarreddyjonnalaga2547 2 года назад

    I followed your code, iam getting empty value in html for ${htmlTitle} and
    ${contentHtml}

  • @stephenmoore6493
    @stephenmoore6493 2 года назад

    Excellent, how do I apply this to a link on a webpage?

  • @azuadara
    @azuadara 3 года назад +1

    Is there a video about how you made your vscode look like that?

  • @questprogrammer5484
    @questprogrammer5484 3 года назад

    Good evening sir! please can you add time for prompting

  • @OG-Everthing
    @OG-Everthing Год назад

    hi, thanks a lot for the video ... if anybody can help me to find the correct version of the html .i can't make the code running .. thanks a lot

  • @saminyasar004
    @saminyasar004 3 года назад

    which font are you using?