title: how to use cookies to store the watched time of a video in javascript
body: <p>How can I store in a cookie the watched time of a video when the user leaves the tab, or reload it? I've seen a code with jwplayer but I don't use this script and I wanted to know how to do something like that.</p>
  <p>Here is an example with jwplayer.
  <a href="https://www.jwplayer.com/developers/web-player-demos/resume-playback-with-cookies/" rel="nofollow noreferrer">https://www.jwplayer.com/developers/web-player-demos/resume-playback-with-cookies/</a></p>
  <p>How can I do this however using a normal javascript? And not the jwplayer</p>