'How to determine correct location of image/file

I'm a bit confused and hoping someone can help me figure this out, I have my project folder with a couple folders JS, Images, and CSS. My click event and function worked in Linux both now it is not working on Windows. The image location should be "../images/imagename.png" but it will only work with "./images/imagename.png" in Windows.enter image description here

Trying to figure out why ../path is not working when it should be the correct path. Even when it shows the path it will not work. But leaving ./path does. enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source