34: How To Prevent Default Events In JavaScript | JavaScript Events | JavaScript Tutorial | mmtuts

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

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

  • @HansenHarmonyHands
    @HansenHarmonyHands 4 года назад +4

    I've been struggling with JavaScript in school. Your videos are really helping me to understand. I signed up as a Patreon to say thanks. But I also wanted to say thank you again here. :)

  • @j.godfrid680
    @j.godfrid680 2 года назад +2

    Awesome tutorial as always!
    Thanks so much for the lesson, you're an excellent tutor Mr Dani

  • @zaedmagzoub8574
    @zaedmagzoub8574 6 лет назад +3

    Please make ES6 tutorial to let us understand promises, async await, etc.

  • @jackiemanamela1358
    @jackiemanamela1358 5 лет назад +4

    Thanks for the lesson, you're an excellent tutor sir

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

    Very Helpful. ❤ I have made Search Bar using Prevent Defaults on which you can search websites

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

    i just add "return false;" after i call my function(s) inside the onclick event on anchors
    for example LINKTEXT - it does the same job - doesnt scroll to the top of page

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

    Hey buddy! I have been trying to start using Sass, but it's so frustrated when I can not make it run and work well, I have watched like 1000 of tutorials and nothing works for me, I do step by step and nothing works. I am Mac user, so I am using the terminal. If you can make a serie about Sass, will really really great! Thanks

  • @jojovarghese9424
    @jojovarghese9424 6 лет назад +1

    Sir can you do a PHP super cool advanced professional course I will give you money

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

    You talk to fast bro. We’re trying to learn over here.

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

      If i talk slower people will comment that I need to talk faster hehe. There is a “video speed” option under the RUclips video where you can set the speed down 😉

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

      Adjust the speed. This is the greatest life hack you will ever learn. (Settings > Playback speed > select 1.25 to 2.) You are welcome.

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

    I'm so glad I stumbled upon your channel. Helps a lot, so thank you!

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

    Thank you man, i was struggling with this

  • @satyamtomar5250
    @satyamtomar5250 6 лет назад +1

    Start a series for CMS.....

  • @parimalbhattarai3920
    @parimalbhattarai3920 6 лет назад +1

    coooll!!! Are there more tutorials ??

  • @Frutipro
    @Frutipro 5 лет назад

    Doesnt it work by writing javascript:void(0) in the href attribute ?

  • @mounir101
    @mounir101 6 лет назад +1

    Great tutorial! thanks, bro

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

    How to undo/unbind this?

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

    Dani !!😁honestly, you explain things so well, you are definitely my default go to

  • @imokhaielias2160
    @imokhaielias2160 6 лет назад

    I can stop thanking you... You can't imagine the awesome website I've built all thanks to ur php tutorial.... Though I'm still having challenge with oop

  • @MrEmilmo
    @MrEmilmo 6 лет назад

    Awesome tutorial as always!
    Please check your dms on your Facebook page, I’ve tried to get in contact with you

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

    Thanks for this series!

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

    Uncaught TypeError: Cannot set property 'onclick' of null
    at main.js:107. I was trying to use this in my form. var myFormSub = document.getElementById("validationform");

    function stopFormsumit(e){
    e.preventDefault();
    };

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

      Is validationform an id or a class?
      I came over a similar issue as i tried, by mistake, to select a class with getElementbyId

  • @sm1ley732
    @sm1ley732 5 лет назад

    thanks dude, taking me to the top of the document when clicking a link was annoying me ASF...

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

    Thank you!!!!! I was really stuck before I found your channel.

  • @ams0063
    @ams0063 6 лет назад

    It’s quite a useful thing. Nice video

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

    trying to make a snake game
    thats literally what I wanted to do from when I started coding...

    • @calibr0636
      @calibr0636 5 лет назад

      they said that you can't really learn a whole language, its more depending on what part of the language your trying to learn, for example, I just trying to learn the parts that makes up a game.

    • @amrnashaat7063
      @amrnashaat7063 5 лет назад

      i think if you are into making games that you should learn a game engine like unity or unreal, then depending on what engine you choose you will need to learn a certain programming language for that engine for example unity uses C# while unreal uses C++ , that's the right way i think in order to make games and even find a job as a game developer

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

      ​@@amrnashaat7063actually, I'm learning c# right now to be able to use unity! I already made a pong type kind of game. I already have unity. amazing how in two weeks, a lot of progress was made

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

      check my channels videos with the title: "this is it" and "pong".

  • @Agustin-jo8mv
    @Agustin-jo8mv 3 года назад

    Thanks bro, I think that helped me. haha

  • @네이키드-x3w
    @네이키드-x3w 6 лет назад

    i'm from korea, and thanks for great video.

  • @sandaruwanbro3045
    @sandaruwanbro3045 6 лет назад

    Good i like man

  • @mohameddrisi2333
    @mohameddrisi2333 6 лет назад

    Keep It Up bro😍