Horje
javascript detect time on page Code Example
javascript detect time on page
$(document).ready(function() {
  var start = new Date();

  $(window).unload(function() {
      var end = new Date();
      $.ajax({ 
        url: "log.php",
        data: {'timeSpent': end - start},
        async: false
      })
   });
});




Javascript

Related
define conastant js Code Example define conastant js Code Example
Type '{}' is missing the following properties from type 'RouteComponentProps<{}, StaticContext, unknown>': history, location, match Code Example Type '{}' is missing the following properties from type 'RouteComponentProps<{}, StaticContext, unknown>': history, location, match Code Example
js invoke function Code Example js invoke function Code Example
solid in css Code Example solid in css Code Example
404 responses in express Code Example 404 responses in express Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6