. . . "} else { isPaused = false; // playing cmd.winControl.icon = pause; cmd.winControl.label = Pause; cmd.winControl.tooltip = Pause this song; }} Again, the button is just an element in the DOM and updating any of its properties, including styles,will update the element on the screen once you return control to the UI thread." .