let startDate = new Date(); let elapsedTime = 0; const focus = function() { startDate = new Date(); }; const blur = function() { const endDate = new Date(); const spentTime = endDate.getTime() - startDate.getTime(); elapsedTime += spentTime; }; const beforeunload = function() { const endDate = new Date(); const spentTime = endDate.getTime() - startDate.getTime(); elapsedTime += spentTime; // elapsedTime contains the time spent on page in milliseconds }; window.addEventListener('focus', focus); window.addEventListener('blur', blur); window.addEventListener('beforeunload', beforeunload);
top of page
Search

TABLE FUNCTIONS

I have come across the table functions in Oracle during the initial years of my career but rarely spared time to delve deeper into it...

Load External JASON data in Oracle

Uploading Data files in oracle is nothing new. Many of us have been doing it for years but playing with JASON files is something that...

Blog: Blog2
  • LinkedIn
  • Facebook
bottom of page