Posts by mannoeu • 13 points
1 post
-
1
votes1
answer537
viewsQ: Onclick() event to change the text of a button (play / pause)
I have this div in my html and wanted to make the click on the play button change the text to pause and when clicking again switch to play. var buttonControl = document.querySelector('#control');…