JavaScript Popup window - Popup Login Form

Поделиться
HTML-код
  • Опубликовано: 8 фев 2019
  • In this video, we will discuss, how to open a popup window using JavaScript.
    Create a simple modal popup using HTML, CSS, and Javascript. In this video, we create a popup login form that appears when a button is clicked.
    This is my tutorial about making your own popup message or Form with CSS and JavaScript.
    Please subscribe to our channel more Website Design Tutorial.
    Facebook / umtutorial

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

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

    You are the goat thank you kindly. At first it was not working but then I moved my script from an external file to my html doc as you've done here and voila! I still have to figure why it wasn't working. THANK YOU

  • @ma_verite
    @ma_verite 3 года назад +2

    It been a long time I try to do a popup form with J.s thank you so MUCH your code is sooooo clean

  • @getintosuccess8198
    @getintosuccess8198 5 лет назад +1

    wow.. thanks for this tutorial

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

    your video nice , because i watch almost 10 videos before this video all are very difficult to understand , but this video i understand first 5min.

  • @abdurrazzak1612
    @abdurrazzak1612 4 года назад +8

    your code was so clean.

  • @BaziJo
    @BaziJo 5 лет назад +1

    thank you for this video very nice

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

    Great work,😍

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

    great tutorial, thank you! good music

  • @user-dg5tt8yu1e
    @user-dg5tt8yu1e 9 месяцев назад +1

    Hello, I have a query for you. I've made six goods and am attempting to insert this code into the order now button, however neither the popup nor multiple buttons are working, nor is the code displaying in the full window. Please assist me.

  • @maci3985
    @maci3985 10 месяцев назад

    thats what im talking about that why he is the MVP , THAT WHY HES THE GOOOOOAAAAT THE GOOOOOOOAAAAAAAAT

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

    Thank you very much ❤️

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

    very good

  • @hoihoi7409
    @hoihoi7409 3 года назад +3

    It's important to add an event listener that when you press outside the white box, it closes.

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

    awesome bro

  • @091_nadhiraazzahra3
    @091_nadhiraazzahra3 2 года назад

    thank you so much!

  • @Amelia1602
    @Amelia1602 4 года назад

    May i know where to download your button.png ? i tried alot of close button but the sizes shown on my webpage are big

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

    me sirvio a la perfección

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

    it work realy thank u

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

    very good tutorial

  • @uzairchougule
    @uzairchougule 2 месяца назад

    How can i add animation like it slides down after i click on the login button i know a little gsap but idk how to apply any help would be appreciated

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

    Thanks Bro

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

    thank you

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

    what piece of code should be added in order to make the text in boxes disappear after clicking on login

  • @abdurrazzak1612
    @abdurrazzak1612 4 года назад

    thanks

  • @ozgureren8925
    @ozgureren8925 4 года назад

    unbelievable

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

    WOW! can i make the popup only appear when a specific user clicks on it, e.g. guest?

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

    suscrito gracias por enseñar suscrito

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

    👍👍

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

    Thanks bruh

  • @mehdiabderrahmaneyahiaoui4700
    @mehdiabderrahmaneyahiaoui4700 4 года назад

    Hello thanks for your tutorial i want to add a close on clicking outside how can i do that?

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

    Thanks

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

    Thanks bro

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

    how do you have the index.html on the right side preview?

  • @ishaankothidar3044
    @ishaankothidar3044 4 года назад

    everyone shows this type of code but login button could be on everypage now i can't put div popup in every page.
    I really want to know how i can use different file login.html as popup or modal in any other file. I can't find the solution anywhere when I m trying I m getting error.

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

      create a new file and include this file in every page

  • @osamawaseem7006
    @osamawaseem7006 2 года назад +3

    Great Tutorial But one advice that don't use music in such videos they distract from work but Thanks Again For sharing your knowledge

  • @AtulSharma-xt3xy
    @AtulSharma-xt3xy 3 года назад

    which text editor are you using

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

    on adding contents to body part ,overlay of popup goes down.

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

    oh my god i fucking love u

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

    is it javascript?
    i think the title should be changed😧
    thanks for the good video

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

    What's the music anyone ?

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

    Sir how do I contact you ?

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

    what is your function?

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

    ok but how to do it in react ?

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

    when i click the button its not working for me

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

    Can you help me sir.।

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

    Code?

  • @winsomeblaise8866
    @winsomeblaise8866 2 месяца назад

    Source code please
    Urgent

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

    I want source code

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

    need picture

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

    source code

  • @eartherkushwah
    @eartherkushwah 4 года назад +1

    what is the problem in this code:
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    None Print
    .container h1{
    color:green;
    font-size:36px;
    margin-bottom:50px;
    }
    .button{
    background-color:red;
    color:white;
    text-transform:uppercase;
    font-size:20px;
    border-radius:2px;
    box-shadow: 6px 6px 29px -4px rgba(0,0,0,0.75);
    margin:35px;
    padding:5px 20px 5px 20px;
    text-decoration:none;
    transition:0.5s;
    }
    .button:hover{
    background-color:black;
    color:white;
    }
    .popup{
    background-color:rgba(0, 0, 0, 0.7);
    width:100%;
    height:100%;
    position:absolute;top:0;
    display:none;
    justify-content:center;
    align-items:center;
    text-align:center;
    }
    .popup-content{
    height:500px;
    width:500px;
    background:#fff000;
    padding:20px;
    border-radius:50%;
    position:relative;
    }
    input{outline:0px;
    margin:20px auto;
    padding:8px;
    width:50%;justify-content:center;
    border:2px solid gray;
    display:block;
    }
    input[type=text]{
    border-radius:30px 30px 0px 0px;
    }
    input[type=password]{
    border-radius:0px 0px 30px 30px;
    }
    .close{
    position:absolute;
    width:20px;
    height:20px;
    border-radius:50px;
    top:5px;
    left:95%;
    cursor:pointer;
    }
    .roundshap{
    color:red;
    border:2px solid green;
    padding:0px;
    margin:0px;
    width:80%;
    position:absolute;
    bottom:100px;
    left:50px;
    border-radius:50px;}
    Look At This
    Login Now !







    Login


    document.getElementById(".button").addEventListener("click", function(){
    document.querySelector(".popup").style.display = "flex";});
    document.getElementById(".close").addEventListener("click", function(){
    document.querySelector(".popup").style.display="none";});

    • @m-2718
      @m-2718 4 года назад +1

      I know I am half a year late, but heck I found the error and I going to say what is wrong >w>
      In document.getElementById(".button").addEventListener("click", function(){ there should be no "." Before button and same with close there shouldn't be "." and also there should be id = "close"

    • @ismetgusic3186
      @ismetgusic3186 4 года назад +1

      @@m-2718 also ' document.getElementById(".close") ' in to ' document.querySelector(".close") '

  • @user-be1yf9jn6e
    @user-be1yf9jn6e Год назад

    source code