HTML/JavaScript onclick Event

WociallGlycle

New Member
I have been trying to place multiple onclick events to one single button, but I am a little confused as how to do it properly.AIMWhen the user clicks 'Start', this should:
  • Change the value of the button to 'Stop'
  • Activate function getLocation ()
  • Activate function startTimer ()
THENWhen the user clicks 'Stop', this should:
  • Change the value of the button to 'Start'
  • Activate function clearWatch ()
  • Activate function stopTimer ()
Is this possible? Any help would be greatly appreciated.Thanks!
 
Back
Top