I am currently in the process of changing an attribute of a JavaScript variable from url("../images/video.png") (as declared in the CSS) to url("../images/pause.png") using this line of code:
fullscreenPlayPauseButton.style.backgroundImage = "url("../images/pause.png")";
When I hover over the image, it shows up correctly and both images are in the folder. However, after executing this line of code, the originally displayed image (video.png) turns grey. The console error message I receive is "Uncaught SyntaxError: Unexpected token ." on the line with that code. Appreciate any help in advance!