Javascript Assistance

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.

geek_outlaw2, May 29, 9:00 pm

geek_king1, May 29, 9:06 pm

perfect - thanks

geek_outlaw2, May 29, 9:20 pm