In JavaScript I want to load an image file from a different directory. My file structure is as such:
Project/js/script.js
Project/img/1.png
In script.js I want the following:
document.getElementById("image").src = "Project/img/1.png";
How do I make this work?
Project/index.html