Search code examples
javascriptboot

Detect Time Since Last Boot in JavaScript


Is it possible to detect the time since a device was last booted in client-side JavaScript?


Solution

  • In client-side javascript; NO. The OS level details are not exposed to the javascript run-time in browsers

    But if by client-side you mean an android application running javascript in WebView, there may be a plugin to extract the info