I am trying to display an image on my html site with this piece of code
"<a href='http://www.stonybrook.edu/'><img class='sbu_navbar' alt='Stony Brook University' src=" + 'Users/Natan/NetBeansProjects/Homework Four/TAManager_Solution/images/yale.png' + "></a>";
The important part is this part
src=" + 'Users/Natan/NetBeansProjects/Homework Four/TAManager_Solution/images/yale.png' + "></a>";
I know that the format is weird but I need it that way because I will be replacing the actual path with data from a json file so it won't be hardcoded.
Does anybody know why the absolute path wont work? It displays an image correctly when I use a relative path like this
src=" + './images/SBUWhiteShieldLogo.jpg' + "></a>";
but not an absolute path.