Check Internet Connection in HTML CSS & JavaScript | Check Offline or Online Status in JavaScript

Поделиться
HTML-код
  • Опубликовано: 16 май 2024
  • In this video, I demonstrate how to use HTML, CSS, and JavaScript to check and display a notification when the user's device loses its internet connection.
    Live Demo or Download Codes of this Internet Connection Checker
    codingnepalweb.com/demos/chec...
    Follow me on Instagram
    / coding.np
    Timestamps:
    0:00 Demo of the Project
    1:14 HTML & CSS Start
    6:22 JavaScript Start
    6:54 Checking Internet Connection
    9:40 Showing Offline Notification
    15:58 Showing Back Online Notification
    20:57 Trying to Reconnect on Button Click
    #javascript #html #css #javascriptprojects #js
    Music Credit:
    Closer - LiQWYD (No Copyright Music)
    • Closer - LiQWYD (No Co...
    Deep Sea by Vendredi
    • Deep Sea - Vendredi (N...
    Ikson - We Are Free [Official]
    • #83 We Are Free (Offic...

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

  • @Mohamood_jama
    @Mohamood_jama Год назад +20

    I discovered your channel today, and my 2023 goal is to do one project for each day from your video playlist. Thank you so much

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

      Hey. Are you learning coding? I'm also new to this.

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

      @@devamrh yes I am learning javascript now

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

      @@Mohamood_jama hey im learning too :D i feel that im gonna do the same thing one project per day :D

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

      @ismael hajfani that's nice .where are you learning from ? I am learning from scrimba and it is good website

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

      welcome to the world of coding😊 confusing but happying😂

  • @Muhammad-Shahab
    @Muhammad-Shahab Год назад

    Brilliant.

  • @kash_codes
    @kash_codes 3 месяца назад

    Hey man this is really helpful I wrote the code with you and tried to understand the code myself...it was super easy once everything came togather...I Am Subscribed❤

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

    Awsome!😃😃

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

    Thanks! I Iove your projects

  • @switchlyrics.
    @switchlyrics. Год назад +1

    Always following your tuts nepal ,

  • @technotipsnepal8347
    @technotipsnepal8347 Год назад +4

    Liked it

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

      Hello, I also created a youtube channel that talks about computers go take a look, if you're interested

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

      Glad you like it

  • @FdWebdesign
    @FdWebdesign Год назад +2

    Good Job

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

    😍😍😍😍😍😍

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

    For some sites this can be handy, nice one!

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

    Can you make a video on video.js library complete ads integration or ui desgin or control and shaka-player js library par bhi

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

    Bro where you got a beautiful ui ?

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

    whats the best website for material icons except google?

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

    doing please more php and js project

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

    Nice idea
    but if it gives other errors such as access denied, wrong url, among others, they can also occur, it will fall into the Catch and can give false positives, no? Or am I wrong?

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

      To avoid that you can use a trust-worthy API endpoint to check for internet connection.

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

    Nice idea ❤

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

    Make a sound detector in JavaScript that records our sound detects it with other sounds and tells that the sound recorded was of the same person whose sound was recorded or not

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

    You can do it with event isOnline and isOffline in javascript ,
    Thanks you .

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

      The navigator.onLine method is not a reliable way to determine internet connectivity because it only checks if a device has a connection to a network, not if the network can actually access the internet. A more effective approach is to regularly send requests for data to an API and check if they are successful. If the requests fail, it indicates that the device is offline, as shown in the video.

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

      ​@@CodingNepal
      what if that request sends false then in that case you would assume that we have lost network ?????

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

    can u pls teach how to make your own Website that coding nepal website. is it called blog website? pls teach us.

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

    Please make WhatsApp page script agree and continue page (default home) and also Phone Number verification page

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

    Please How to make website like Facebook with pho