Thank you for the tutorial. Can we apply it when users move to other page? I am creating a small app for training. I want it to get the initial time (entry time) and then create the exit time and send repot to backend then open the page that the user was heading to.
@@AllThingsJavaScript Thank you so much! 💛🌟🙏🏻 Am super grateful for your channel - I love your videos and am excited to dive deeper. Thank you for helping us students learn! 😊💗 💛
Thank you for the tutorial. Can we apply it when users move to other page? I am creating a small app for training. I want it to get the initial time (entry time) and then create the exit time and send repot to backend then open the page that the user was heading to.
You can try the onbeforeunload event for the body tag. See if that will work for you to figure the time on page.
Is there any way to findout system on time in between the certain timeslot,like morning 9’o clock to evening 4’o clock
I'm not sure I understand what you are trying to do? How is your question different from get the time between two events?
const tick = Date.now();
const log = (v) => console.log(`${v}
Elapsed: ${Date.now() - tick}`);
We can just add this to find time elapsed
Can you help me develop a script where I can calculate elapsed time?
If you need some consulting services you can contact me at shancock@allthingsjavascript.com
Hi can you show how to pass the elapsed time to another page and display it?
probably with document get element byid ('id of div u want the text in').ineerhtml=eclapsedtime variable
What theme is that? It's beautiful!
Solarized (light) color scheme
@@AllThingsJavaScript Thank you so much! 💛🌟🙏🏻 Am super grateful for your channel - I love your videos and am excited to dive deeper. Thank you for helping us students learn! 😊💗 💛
See you soon bch