PrepAway - Latest Free Exam Questions & Answers

7 Comments on “Which method should you use?

  1. brkyctn says:

    Explanation/Reference:
    Navigator onLine Property
    The onLine property returns a Boolean value that specifies whether the browser is in online or offline mode.
    Example
    Find out whether the browser is online:
    var x = “Is the browser online? ” + navigator.onLine;
    The result of x will be:
    Is the browser online? true
    Reference: Navigator onLine Property




    0



    0

Leave a Reply