Javascript Assistance

outlaw2, May 29, 9:00am
I have just begun learning javascript and just cannot figure this out.
<div class="button" id = "Pausebutton" >Start</div>
function autoplay()
{Pausebutton.innerHTML = "Stop";} {
I am attempting to create a toggled button which starts and stops a function using if/else.I feel I'm way off here, but would appreciate if someone who knows javascript could quickly show me the correct approach.

king1, May 29, 9:06am

outlaw2, May 29, 9:20am
perfect - thanks

Share this thread

Buy me a coffee :)Buy me a coffee :)