title: How do I use setInterval with my form to create an alarm clock?
body: <p>I'm currently trying to learn JavaScript and I've decided to make things more interesting by actually creating something instead of endless reading &amp; no practice. I'm currently trying to build an alarm clock.</p>
  
  <p>Here's my code:</p>
  
  <p><a href="http://codepen.io/anon/pen/dCsax" rel="nofollow">http://codepen.io/anon/pen/dCsax</a></p>
  
  <pre><code>function wakeup() {
      window.location = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  }
  </code></pre>
  
  <p>I need to create another function that uses setInterval to check every few seconds if the time set in that form is equal to the current time, and if it is, execute the wakeup function that plays Rick Astley - Never Gonna Give You Up.</p>
  
  <p>I don't know how to write this piece of code. Could someone please help me out so I can see how it's done? </p>
  
  <p>Thanks in advance.</p>