Working click on a button if the screen is less than 992px?

  • 0
    Idea: there is a click event that triggers the mobile menu, how do I make the event fire when the screen is less than 992px? pure JavaScript
    JavaScript Anonymous, Apr 16, 2019

  • 1 Answers
  • 0
    if (window.innerWidth < 992) {
    // код скрытия\отображения
    }




    If you want a more detailed answer, ask a more detailed question. Ideally, with a demo in any sandbox.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!