Dear friend, my problem is that after I turn off the background music that was playing at the beginning by pressing the mute button, it starts playing again when the page is refreshed and the frame of the button returns to its previous state. I think this can be done with local storage, but I think I'm making a mistake somewhere. That's why I asked for an example. However, the example in the link controls the volume with the slider!