Create a Simple Popup Modal

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มี.ค. 2018
  • Create a simple modal popup using HTML, CSS and Javascript. In this video, we create a popup form that appears when a button is clicked.
    - Starting App - codepen.io/Middi/pen/WzeGGM
    - The Completed App -codepen.io/Middi/pen/rJYOyz
    - Image - richardmiddleton.me/comic-100...
    - Instagram / richardcodes
    - richardmiddleton.me
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 495

  • @RichardCodes
    @RichardCodes  4 ปีที่แล้ว +16

    Learn to make a mobile responsive menu - th-cam.com/video/VMxP9PMSOYM/w-d-xo.html

  • @tigredejadeec
    @tigredejadeec 2 ปีที่แล้ว +12

    Not every programmer knows how to teach, so when I come across someone who does it really good like you do, I have to let them know! Thank you very much

  • @williamb8162
    @williamb8162 4 ปีที่แล้ว +5

    What a fantastic lil' video! One of the best I've watched on coding in a long time, maybe ever. Thanks!

  • @Chitranshleo
    @Chitranshleo ปีที่แล้ว

    Brilliant Richard..
    It's been several months that I have watched any video at normal speed.
    Especially liked how you explained the code rather than just writing it..
    Thank you.

  • @henryrobledo8365
    @henryrobledo8365 5 ปีที่แล้ว +4

    Finally, instructions for a simple modal clear and to the point. Thanks great tutorial.

  • @vietnguyenc6612
    @vietnguyenc6612 4 ปีที่แล้ว

    omg, I have to say the best coding-teaching video ever. Please keep doing this, I need more, Thank you very much

  • @matthewcooper1683
    @matthewcooper1683 2 ปีที่แล้ว

    It’s amazing the fact you actually tell us what the code does makes us actually understand it

  • @gulnazsharipova3966
    @gulnazsharipova3966 5 ปีที่แล้ว +2

    Thank you so much Richard! it was my first javascript. I have seen tons of analogous video here in Russia but no one was as simple and understandable as yours. Though I had some issues, it seems you haven't explained styles for 'button'. But it was minor remark, solved quickly. Overall very helpful video. Thanks again.

  • @TraversyMedia
    @TraversyMedia 6 ปีที่แล้ว +151

    Great job Richard, very helpful

    • @RichardCodes
      @RichardCodes  6 ปีที่แล้ว +13

      Traversy Media thanks brad. You’re an inspiration.

    • @poonamjagtap8392
      @poonamjagtap8392 4 ปีที่แล้ว

      O

    • @battlefist6884
      @battlefist6884 4 ปีที่แล้ว +1

      @richardcodes and @traversy good job for helping me out

    • @cinquain0
      @cinquain0 4 ปีที่แล้ว +2

      from the master himself

    • @bk._550
      @bk._550 3 ปีที่แล้ว

      Traversy Media thanks brad. You’re an inspiration.

  • @antwarior
    @antwarior 4 ปีที่แล้ว

    bro i swear in just a few words, youve taught me javascript out of all the tutorials i watched, this was the most explanatory one, never new document meant look on page and the way you explained it i fell now i can go code anything i want

    • @RichardCodes
      @RichardCodes  4 ปีที่แล้ว +1

      Thanks for the kind words, glad I could help mate. Javascript is a real mother. Still it kicks my ass every day. Just keep going mate.

  • @KLXZ_
    @KLXZ_ 5 ปีที่แล้ว

    I watch plenty of those videos since i'm learning and i find better half of them hot garbage since people don't explain stuff well, they just do it. You did a great job explaining simple things that might be not that simple for someone who is learning and might not know all of even the most basic things. Great job man. Like and sub, keep up the great work!

  • @trendandviralnews
    @trendandviralnews 5 ปีที่แล้ว +2

    You are my new hero!
    Well done, an easy video, very helpful, understood by me, a simple newbie italian! ;)
    P.S.: you have a new follower! Keep it up

  • @briankelley2920
    @briankelley2920 2 ปีที่แล้ว

    Love the wonderful popup contact form. Help me out a lot. Thank you RichardCodes!

  • @lfcorullon
    @lfcorullon 5 ปีที่แล้ว +2

    Awesome, Richard. That's exactly what I am looking for! Thank you so much for sharing!

  • @tiqo8549
    @tiqo8549 3 ปีที่แล้ว

    Dude...the way you "speak" of the elements to be "alive" and talking to each other makes this even better to understand than any other tutorial i've ever seen. The parent talks to the child...works for m!

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว +1

      Thanks man, Yeah I think teachers can get too far removed from the student, you need to have empathy and understanding of your student. thanks mate.

  • @ulemukawelama431
    @ulemukawelama431 5 ปีที่แล้ว +4

    Thanks Richard, this is what I have been looking for...this is great.. God bless you

  • @hiryuimajin
    @hiryuimajin 5 ปีที่แล้ว

    I just didn't learn about making this awesome modal popup but I also got a lot from the css part of this tutorial. Thank you very much!

  • @wduandy
    @wduandy 2 ปีที่แล้ว

    This video pumped my project a lot! It was the base for all the popups that i'll need! Thanks a lot my dear sir!

  • @MrConway007
    @MrConway007 3 ปีที่แล้ว +1

    You sir are an amazing teacher!! First time I watched a video of yours, and I really like your teaching style of explaining how all the moving parts work togther to create the finished result. I really needed to hear this at a time when I also need to create a pop up contact form on a client's website, I am working, and this video will be of incredible help to me when I start coding it tommrow. Thank you Richard.

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว

      Awesome. Thanks for watching. Good luck man.

  • @lollilolli4582
    @lollilolli4582 2 ปีที่แล้ว +1

    You are a very good teacher, you explain things clearly ! Thank you for this :)

  • @Darkest-Kn1ght
    @Darkest-Kn1ght 6 หลายเดือนก่อน +1

    Richard, thank you so much, I'm JUST getting into javascript and so far it's been a tremendous struggle! I've been through a dozen tutorials on youtube and wasn't able to get this to work. I managed to get your tutorial working after figuring out where to put the link to the javascript file. I've seen some links in the head of the html file and some at the bottom of the html body, so never knew exactly where to put it. It works at the bottom of the body tags in the html though!! Thank you so much!!!

    • @RichardCodes
      @RichardCodes  6 หลายเดือนก่อน +1

      Glad to help. The rule is to put at the bottom.
      This is because the page loads top to bottom. So if the html element you want to manipulate with JavaScript hasn’t loaded yet it won’t work.
      This would be the case if JavaScript came before html.

  • @naie_1001
    @naie_1001 2 ปีที่แล้ว

    Thank you so much!! I've been looking for a video like yours! And the way you desrcibed JavaScript was splendid and was easily understandable, thank you thank you!!

  • @evelienkulikova8825
    @evelienkulikova8825 5 ปีที่แล้ว

    That's a very clear and handy bunch of instructions. Thanks for helping me out! :)

  • @Vinomillz
    @Vinomillz ปีที่แล้ว

    I soo much loved this video... watched lots of popup videos on TH-cam on how to create popups but I couldn't understand them... but when I watched this I got it thanks men✊

  • @newgenerationxpro3379
    @newgenerationxpro3379 4 ปีที่แล้ว +8

    this really helped me with my site that I am working on just for practice, thank you :)

  • @crownphotobooth
    @crownphotobooth 3 ปีที่แล้ว

    Very nice, love the way you explain how each element works, very useful for beginners!

  • @kislayvats5366
    @kislayvats5366 4 ปีที่แล้ว

    you are just awsome man.Thank you so much,today i got a clear vision of what happens when you have more than one position="relative" ,stuff on board.Now i'm clear that position="absolute" chooses the nearest parent with relative position tag.Thank you again.Lots of love from INDIA

  • @sasayaki
    @sasayaki 6 ปีที่แล้ว

    This helped me out on a project I just turned in for an online course. You explained it really well. Thanks so much!

  • @ava_the_curious_cat8276
    @ava_the_curious_cat8276 4 ปีที่แล้ว

    Keep posting videos! This was excellent and easy to follow! Thank you so much!

  • @emmanuelemelogu1258
    @emmanuelemelogu1258 2 ปีที่แล้ว

    WoW! This is apt. You are a great teacher. Thanks a million Richard.

  • @sanatr9181
    @sanatr9181 4 ปีที่แล้ว +1

    It helped me a lot. I subscribed to your channel the moment you showed that modal

  • @cesarcordero1574
    @cesarcordero1574 4 ปีที่แล้ว

    You're a great teacher, following every step is very easy, thank you very much

  • @Galaxygaming.youtube
    @Galaxygaming.youtube 2 ปีที่แล้ว

    Great work buddy
    Your video is truly clear my dot when I work on it.

  • @micharogozinski2371
    @micharogozinski2371 5 ปีที่แล้ว

    Simple, short and it works. Thanks a lot. You helped me a lot. Got a sub!

  • @sissiwatson
    @sissiwatson 5 ปีที่แล้ว +2

    omg! you explain so well!!! Thanks for your tutorial I needed it!

  • @joelyoungberg1154
    @joelyoungberg1154 5 ปีที่แล้ว +2

    Great Tutorial! Very nicely done and clear - Note: for the JQuery users out there the button code would look something like this (depending on your class and id names) :
    $(document).ready(function(){
    // Change modal background from none to flex to show it
    $('#modal-button').click(function(){
    $('.bg-modal').css('display', 'flex');
    });
    // Change modal backround to none to hide it when x gets clicked
    $('.modal-close').click(function(){
    $('.bg-modal').css('display', 'none');
    });
    });

  • @successsoi
    @successsoi 3 ปีที่แล้ว

    Perfect video Richard. Just what I needed for a website I am currently working on. Thanks

  • @vaibhav4081
    @vaibhav4081 2 ปีที่แล้ว

    Thank you so much Richard! it was my first javascript👍🙏

  • @mattmattelig
    @mattmattelig 4 ปีที่แล้ว

    very cool - really like that you explained the css as well as you did. thumbs up on this tut.

  • @makikon4333
    @makikon4333 2 ปีที่แล้ว

    Omg, this is one of the most well explained tutorial ! Thanks!!

  • @hsuyihnin7398
    @hsuyihnin7398 ปีที่แล้ว

    so useful!!!! U really know how to teach clearly. Thank u mr.

  • @samuelbaseke5305
    @samuelbaseke5305 2 ปีที่แล้ว +1

    Best Tutorial and the best teacher.

  • @chriscremeens1193
    @chriscremeens1193 2 ปีที่แล้ว

    Really nice job, for beginners like me it was the perfect balance of speed and information!

  • @IainMacLeod0x
    @IainMacLeod0x 3 ปีที่แล้ว +1

    Thanks so much for this - I came for the modal and learned a whole lot more!

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว +1

      Great to hear mate. I’ll have some more similar videos out soon so don’t forget to subscribe and check back. Have a good one.

  • @thirupathisanthosh6414
    @thirupathisanthosh6414 2 ปีที่แล้ว

    thanks bro....the way u teach is awesome. You are an insipiration!!!

  • @MrBulat1
    @MrBulat1 8 หลายเดือนก่อน

    Thanks a lot for your video. Your lesson helped me to create modal popup window! Have a good day!

  • @angadbhambra6914
    @angadbhambra6914 4 ปีที่แล้ว

    Very helpful and easy to understand
    thanx Richard for making it look so easy.

  • @seemaalam3127
    @seemaalam3127 3 ปีที่แล้ว

    omg!! wt an explanation dear.I became ur fan. Add more n more videos.

  • @anansekrom
    @anansekrom 3 ปีที่แล้ว

    too helpful, very precise and explanations couldn't have been better.

  • @christophersakwa1625
    @christophersakwa1625 ปีที่แล้ว

    you are a great teacher, thank you for this tutorial. Liked and subscribed my friend!

  • @Arjunarjunskiy
    @Arjunarjunskiy 3 ปีที่แล้ว

    Thank you! The way you explain things is very very helpful.

  • @victoriatattoo
    @victoriatattoo 2 ปีที่แล้ว

    Woah thank you!! You are an awesome teacher! So easy to understand this tutorial!

  • @jiachengyang4508
    @jiachengyang4508 2 ปีที่แล้ว +1

    Hey i really love your style by explaining each and every code in a way that is super easy to understand. That is truly unique and different from other python youtubers. Thank you! Hope you can keep this up!

  • @ashanmaduranga6249
    @ashanmaduranga6249 5 ปีที่แล้ว

    omg!!! you are a life savior i was looking for this thing so much thanks aaand keep it up

  • @nitria2549
    @nitria2549 5 ปีที่แล้ว

    the margin between the input tags not working for me couldnt find out why so i used the tag

  • @sloveshandayalan8250
    @sloveshandayalan8250 2 ปีที่แล้ว

    Thank you! This was helpfull, Your teaching style is perfect, i love it.

  • @winoINC
    @winoINC 3 ปีที่แล้ว

    Such a great video and especially helps how you explain things with showing code etc. extremely helpful:) thanks you got new sub

  • @SuperHaseeb2010
    @SuperHaseeb2010 5 ปีที่แล้ว

    Very usedful video.. thanks. Ur explanations are the best ive seen keep doing it bro

  • @kennethgonzalez6689
    @kennethgonzalez6689 ปีที่แล้ว

    5 minutes in just wanna say you are an AMAZING teacher thank you so much

  • @shadowytv
    @shadowytv 3 ปีที่แล้ว +1

    Nice, simple, quick, and instant subscribe.

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว

      Thanks. A few simple videos coming up, very basic then will start to turn it up a bit. Glad you’re here.

  • @mosesmoses8751
    @mosesmoses8751 5 หลายเดือนก่อน

    I love the explanations so simplified thank you

  • @valecbcb
    @valecbcb 3 ปีที่แล้ว

    Great video! Super simple and very well explained. Thank you!!!

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว

      Glad to hear it! thanks for watching mate

  • @mo_4484
    @mo_4484 5 ปีที่แล้ว +1

    Awesome tutorial with easy to understand explanations

  • @axelandru9346
    @axelandru9346 7 หลายเดือนก่อน

    Good explanation method and very patient attitude !!!

  • @petsimk
    @petsimk 5 ปีที่แล้ว

    Very good! Enjoyed the in-depth explanation.

  • @brandontolor381
    @brandontolor381 4 ปีที่แล้ว

    This was really cool, thanks for the mini tut...

  • @neb542
    @neb542 2 ปีที่แล้ว

    Very good at verbalizing what you are doing. So helpful thanks

  • @dubbastudio
    @dubbastudio 3 ปีที่แล้ว

    I am looking for this in all the blogs and stack overflow ,you gives a clear and simple explanation 🤩 do more tutorials

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว +1

      Similar tutorials will be here soon

  • @kundansinghpanwar1113
    @kundansinghpanwar1113 4 ปีที่แล้ว

    awesome explanation create more please... very very helpful

  • @anjanaprabhath9691
    @anjanaprabhath9691 2 ปีที่แล้ว

    very clearlty understand. i recommend you to my friends too boss. good luck

  • @itsmereitumetse
    @itsmereitumetse 3 ปีที่แล้ว

    Very helpful. I was also able to understand the purpose of some properties which I did not know exactly why I was using them.

  • @yanick7691
    @yanick7691 5 ปีที่แล้ว

    Nice job Richard, thanks so much.

  • @shikharsinha6407
    @shikharsinha6407 4 ปีที่แล้ว +1

    Thanks a lot for your help!
    It helped me with a project and it worked perfectly.
    Thanks a lot, again.

    • @RichardCodes
      @RichardCodes  4 ปีที่แล้ว +1

      Pleasure. I have more similar videos coming so remember to subscribe.

  • @ckernest
    @ckernest 4 ปีที่แล้ว

    Good work! learn a lot from you in this video about coding a UI component.

  • @mydsharetech1972
    @mydsharetech1972 5 ปีที่แล้ว

    Very nice and understanding tutorial! Thank you sir!

  • @israelemmanuel7905
    @israelemmanuel7905 2 ปีที่แล้ว

    you are really an amazing teacher......you just saved my little ass. Thanx to you sir

  • @eyalshnitzerful
    @eyalshnitzerful 5 ปีที่แล้ว

    Great video.
    Helped me alot.
    Thank you.
    Continue making videos 🤗

  • @akashtawade42
    @akashtawade42 3 ปีที่แล้ว

    You are an excellent teacher!!

  • @akhilgbs4815
    @akhilgbs4815 4 ปีที่แล้ว

    thanks man!!! you made it so simple to understand.

  • @lexandarthewolf9343
    @lexandarthewolf9343 5 ปีที่แล้ว

    The best tutorial so far...

  • @Templar2300
    @Templar2300 4 ปีที่แล้ว

    This is way easy than I expected. Thanks

  • @kenng3348
    @kenng3348 5 ปีที่แล้ว

    Never thought about the way we can make the "X" button. Great job!

    • @serpent77
      @serpent77 4 ปีที่แล้ว

      You can also use the html character × so you don't have to mess with the css transform.

  • @MuhammadBilal-sv4ql
    @MuhammadBilal-sv4ql 3 ปีที่แล้ว

    Love you bro Nice Thanks for sharing your knowledge.✔✌❤

  • @epizone
    @epizone 3 ปีที่แล้ว

    nice one Richard, am practising doing it

  • @zaeemAtif
    @zaeemAtif 2 ปีที่แล้ว +1

    so much love man..!! You made my day.!!! :)

  • @youtubebaba9287
    @youtubebaba9287 ปีที่แล้ว

    Thanks for this quick tutorial 👍🏼

  • @trishalwalia4086
    @trishalwalia4086 5 ปีที่แล้ว

    Thanks Buddy :) Its easy , simple and a great tutorial !

    • @bk._550
      @bk._550 3 ปีที่แล้ว

      Traversy Media thanks brad. You’re an inspiration.

  • @edmartinez5345
    @edmartinez5345 5 ปีที่แล้ว

    Thanks mate! Nice video. It helped me a lot.

  • @BugArray
    @BugArray 2 ปีที่แล้ว

    Awesome stuff . I am going to implement this in Angular on my youtube channel

  • @sudip7949
    @sudip7949 2 ปีที่แล้ว

    loved it you explained it throughly

  • @chandrus03
    @chandrus03 4 ปีที่แล้ว

    I understood about the block element now... Thanks!

  • @ChapCanai
    @ChapCanai 3 ปีที่แล้ว

    Best tutorial I have come across in life

    • @RichardCodes
      @RichardCodes  3 ปีที่แล้ว +1

      Thanks man, I massively appreciate the kind words

  • @andrewmarbaniang
    @andrewmarbaniang 5 ปีที่แล้ว

    You are a good tutor. Excellent video.

  • @essaalu7047
    @essaalu7047 2 ปีที่แล้ว

    great job mam, keep goimg 👏👏👏

  • @ahmedbadal3795
    @ahmedbadal3795 5 ปีที่แล้ว

    i follow in instagram never know u have channel ...your are awesome ...plz make alot off videos for new bie

  • @ShokPure
    @ShokPure 5 ปีที่แล้ว

    You are great ❤️❤️❤️
    This tutorial solved my problem ❤️

  • @cubedev4838
    @cubedev4838 5 ปีที่แล้ว

    I know your channel from freecodecamp.U are awesome!!
    Your explanation can solve any problems and very clear to the point.Very experience!!

  • @andrewmoore2597
    @andrewmoore2597 5 ปีที่แล้ว

    Great Tutorial Richard.

  • @animego642
    @animego642 3 ปีที่แล้ว

    Best HTML Tutor, Thank you very much :) :)

  • @pm04sss
    @pm04sss 5 ปีที่แล้ว

    You are awesome Richard. Subscribed.