TypeError: Cannot Set property ‘onclick’ of null

ids are case sensitive. So you element is #stop and not #Stop

  var stop = document.getElementById('stop')

Just make sure to do this for all the elements.

Leave a Comment